title: ArrayLists and sub-lists
body: <p>Hello im rather stuck on this part of my java programming work. I have done what i think is right for this question but im unsure if it is right as the next question asks to add 4 different strings into two different sub-lists (and thats where im getting stuk).</p>
  
  <p>This is the first question:</p>
  
  <p>Create a variable called balancedThings of type ArrayList of ArrayLists of Strings and add a method balancedInit() that instantiates the balancedThings variable by creating a new ArrayList > object and that also creates two new ArrayList  objects and adds these to the balancedThings list.</p>
  
  <p>this is the second question:</p>
  
  <p>Add a method balancedCreation() that adds the strings “sword” and “map” to the first of the two sub-lists, and the strings “shield” and “bottle” to the second sub-list.</p>
  
  <p>This is my answer:</p>
  
  <pre><code>void balancedInit()
      {
          balancedThings = new ArrayList&lt;&gt;();
  
          balancedThings.add(0, "SubListOne");
  
          balancedThings.add(1, "SubListTwo");
      }
  </code></pre>
  
  <p>Can anyone explain if this is right for the question and where i should go next in order to add into sublists?</p>