Building A Tree Like Structure
<p>I just posted the following question but i made a mistake. What i want is not how to use Eclipse but how to build the tree-like structure. An element can have more than one children.
  So show me how to build the tree; It is not actually tree but  to build the structure as i have show below.  Thanks</p>

<p>I am haveng this problem with my application and need help. I have data from the server in this form</p>

<p>Food Apple Fruit Seed etc..</p>

<p>Table Chair pen School et..</p>

<p>...</p>

<p>Food Mango Peer Melon etc..</p>

<p>Reading from the left, i want to make for eg; in the first row,</p>

<p>Food parent of Apple</p>

<p>Apple parent of Fruit</p>

<p>Fruit parent of Seed</p>

<p>and if there are more data then etc.. I will itereate over the above data from the server with loop; Example:::</p>

<pre><code>+Food
    Apple
       Fruit
           Seed
            etc..

+Table
      Chair
          Pen
             School
              etc..
</code></pre>

<p>In the above code, "Food" and "Table" belong to the same level. My problem is how do i begin. I have googled the whole day but can't find something that i really understand. How can i for instance make "Food" parent and make Apple its child and then make Fruit the child of apple and so forth. Show me  how to build the tree.</p>

<p>Need your help.</p>

<p>Thanks</p>
