title: typical operations on stored string in java
body: <p>What is the Best Data Structure availaible in java to Store strings and then do some operations on it as such as:(Beginner in Java)</p>
  
  <p><strong>Input: Sam Mohit Laksh Nitesh Aquib</strong></p>
  
  <p>i know i can store each of them in data structures as such as <em>ArrayList and etc</em>.
  But if  i store them as:</p>
  
  <pre><code>Scanner sc= new Scanner(System.in);
  ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
  then  iterating and adding them as:
  for(int i=0;i&lt;n;i++)
  //let n be any number
  {
     List.add(sc.next());
  }
  </code></pre>
  
  <p><strong>but What if i want to Convert a Word Like Mohit to as a char array as ['M','o','h','i','t']</strong></p>
  
  <p>so that char[0]='M' or char[3]='i'
  i know i can iterate through an iterator object of type MyArrayList. but can that iterator be converted to char array ?</p>