title: Java ArrayList.add overwriting values
body: <p>have this class</p>
  
  <pre><code> public class Taxonomia {
  
      private static ArrayList&lt;String&gt; hijas;
      private static String padre;
  
      public Taxonomia (String p, ArrayList&lt;String&gt; h){
          hijas = h;
          padre = p;
          }
  
  }
  </code></pre>
  
  <p>used in another class like this:</p>
  
  <pre><code>public class TablaSimbolica {
  
  private static ArrayList&lt;Taxonomia&gt; taxonomias = new ArrayList&lt;Taxonomia&gt;();
  
  public static void addTaxonomica(){
  
      System.out.println("enter value: ");
      String padre = Entrada.read(); //reads input and returns String
      System.out.println("entre value comma separated: ");
      String reemplazado = Entrada.read();
      ArrayList&lt;String&gt; items = new ArrayList&lt;String&gt;(Arrays.asList(reemplazado.split("\\s*,\\s*")));
      Taxonomia t = new Taxonomia (padre, items);
      taxonomias.add(t);  
  
  }
  </code></pre>
  
  <p>when called from the main simple as this (print its just a for...)</p>
  
  <pre><code>TablaSimbolica.addTaxonomica();
  TablaSimbolica.addTaxonomica();
  TablaSimbolica.printTax();
  </code></pre>
  
  <p>all the objects are the same, and i cant figure out where it is im missing the creation of a new object or something like that. thanks in advance!</p>