Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: PLEASE HELP ME OUT Parent-Child hierarchy construction

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PLEASE HELP ME OUT Parent-Child hierarchy construction

    Hi,

    There is a table in xl as below:
    Calling Called
    Folder1 Sub1
    Folder1 Sub2
    Sub1 Sub3
    Sub3 Sub4
    Folder2 Sub6
    Folder2 Sub7
    Sub7 Sub8
    Sub7 Sub9

    Explaination of the table:
    "Folder1" is calling child "Sub1" and "Sub1" is calling "Sub3", and likewise ...

    I need an output in an hierarchy saying parent->child->subchild...

    Expected Output 1:
    Folder1->Sub1->Sub3->Sub4
    Folder1->Sub2
    Folder2->Sub6
    Folder2->Sub7->Sub8
    Folder2->Sub7->Sub9

    Expected Output 2:
    In the 3rd column of excel against each row of Calling & Called columns ,Output should be as below(i.e, Parent|Child|...):
    Folder1|Sub1
    Folder1|Sub2
    Folder1|Sub1|Sub3
    Folder1|Sub1|Sub3|Sub4
    Folder2|Sub6
    Folder2|Sub7
    Folder2|Sub7|Sub8
    Folder2|Sub7|Sub9

    Please help me out in this. Thanks


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: PLEASE HELP ME OUT Parent-Child hierarchy construction

    Cross posted here.

Similar Threads

  1. Parent JSP Page is not refreshing properly after modifying a child Jsp.
    By jay_84 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 14th, 2011, 09:59 AM
  2. Replies: 7
    Last Post: July 21st, 2011, 02:29 PM
  3. Access and set variable in parent class through child
    By java_newbie in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 19th, 2011, 11:44 PM
  4. saving the data of the child jsp into parent jsp
    By nrao in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: January 15th, 2011, 11:05 AM
  5. GUI does not pop up in child process before parent is killed
    By Antipeko2 in forum Java Theory & Questions
    Replies: 0
    Last Post: February 26th, 2010, 06:32 AM