title: Make a Tree from List of Array (ResultSet for example)
body: <p>I have a List of Arrays, like this one:</p>
  
  <pre><code>List&lt;String[]&gt; myList = new ArrayList&lt;String[]&gt;();
  myList.add( new String[]{"A1","B1","C1","D1","values"} );
  myList.add( new String[]{"A1","B1","C2","D1","values"} );
  myList.add( new String[]{"A1","B1","C2","D2","values"} );
  myList.add( new String[]{"A2","B1","C1","D1","values"} );
  myList.add( new String[]{"A2","B1","C1","D2","values"} );
  </code></pre>
  
  <p>I need fill An Object that have dependences with the fathers, so:</p>
  
  <ul>
  <li>A1 have only one child, B1.
  <ul>
  <li>B1 have 2 children, C1 and C2.
  <ul>
  <li>C1 have 1 child, D1, that have the values...</li>
  <li>C2 have 2 children, D1 and D2, that have the values...</li>
  </ul></li>
  </ul></li>
  <li>A2 have only one child, B1 (Not the same that the other one)
  <ul>
  <li>B1 have only one child, C1... etc.</li>
  </ul></li>
  </ul>
  
  <hr>
  
  <p>What kind of structure do you think is better? I need the names A1, B1, etc.</p>
  
  <p>I have probe with Maps, Arrays, Lists... I think that the algorithm is not possible... :( :(</p>
  
  <h2>Please, HELP!</h2>
  
  <p>Edit explaining:</p>
  
  <p>I have a ResultSet from a DataBase that have 5 or 6 GROUP BY clauses. I have all the plain data and </p>
  
  <p>I need to make an structure with Text Objects, for example: </p>
  
  <pre><code>Person A - Building 1 - Tower 1 - Some Text A
  
  Person A - Building 1 - Tower 2 - Another Text
  
  Person A - Building 2 - Tower 1 - Another one Text
  
  Person A - Building 2 - Tower 3 - My Text
  
  Person B - Building 1 - Tower 2 - Any Text
  
  Person B - Building 3 - Tower 1 - A Text...
  </code></pre>
  
  <p>I need an Object structure for this data... Is it possible?</p>