title: Regarding serializing the array list object
body: <p>I have an array list that I want to serialize please advise how to I will be able to do that..</p>
  
  <pre><code> ArrayList list=new ArrayList();
        list.add("Ram");
        list.add("Sachin");
        list.add("Dinesh");
        list.add(1,"Ravi");
        list.add("Dinesh");
        list.add("Anupam");
        System.out.println("There are "+list.size()+" elements in the list.");
        System.out.println("Content of list are : ");
        Iterator itr=list.iterator();
        while(itr.hasNext())
        System.out.println(itr.next());
       }
  </code></pre>
  
  <p>}</p>
  
  <p>I want to use the serialization mechanism so that I can save it in file </p>