title: set() in ArrayList
body: <p>I am new to Java, please help me.</p>
  
  <p>My program is</p>
  
  <pre><code>import java.util.*;
  import java.lang.*;
  class Test
  {
      public static void main(String[] args)
      {
          ArrayList al=new ArrayList();
          al.add("a");
          al.add("b");
          for(int i=1;i&lt;=10;i++)
          {
              al.add(i);
          }
          al.remove("a");
          al.set(1,"c");
          for(int j=3;j&lt;=al.size();j++)
          {
              al.set(j,"z");
          }
  
          System.out.println(al);
      }
  };
  </code></pre>
  
  <p>in above any mistake........plz help me</p>