title: ArrayList replaceAll() not working
body: <p>I don't know what's the problem in my code.Whatever I try to replace, not wroking.
  I have a <code>private static ArrayList&lt;String&gt; lista</code>. </p>
  
  <p>I fill this. Then later in another method, whatever I try, I can't replace anything, like this:</p>
  
  <pre><code>public static void replacing() {
      Collections.replaceAll(lista, "a", "!!!!!!!!!!!!!!!!!!!!!");
  }
  </code></pre>
  
  <p>Then I print this in the method and lista is the same, nothing changed. What should I check after?</p>
  
  <pre><code>public class MyProgram {
      private static ArrayList &lt; String &gt; lista;
      public static void fileReading() {
          lista = new ArrayList &lt; String &gt; ();
          try {
              inp = new LineNumberReader(new BufferedReader(new InputStreamReader(new FileInputStream(inFileNev), "ISO8859-1")));
              String sor;
              while ((sor = inp.readLine()) != null) {
                  lista.add(sor);
                  lista.add(System.getProperty("line.separator"));
              }
              inp.close();
          } catch...
      }
      public static void searching() {
          Collections.replaceAll(lista, "a", "b");
          System.out.println(lista.toString());
      }
  }
  </code></pre>