Converting CharacterArray to ArrayList
<p>I have a String i needed to add the individual characters of that String into an ArrayList.</p>

<p>For Ex:String str="hello world";</p>

<p>Step 1:I am Splitting that String into charArray();</p>

<pre><code> char ch[]=str.toCharArray();
</code></pre>

<p>Step 2:I am Converting that char Array into List and i am typecasting into an ArrayList</p>

<pre><code>ArrayList&lt;Character&gt; ar=new ArrayList&lt;Character&gt;(Arrays.asList(ch));
</code></pre>

<p>Step 3:I am trying to Iterate and print those elements.</p>

<pre><code>Iterator i=ar.iterator();
while(i.hasNext())
{
  System.out.println(i.next());
}
</code></pre>

<p>I am expecting 'h' ,'e','l','l','o','','w','o','r','l','d' to be printed.</p>

<p>But instead it is printing some object address [[C@f0d1e0b]</p>