title: using charAt() function assigning to the char array is throwing error
body: <p>I'm trying to save string in to a character array using the below code &amp; im getting this error: Type mismatch: cannot convert from char to char[]</p>
  
  <p>Below is the code</p>
  
  <pre><code>public class ExCaluculator{
  char[] swi=new char[10];
  String San="hello world" ;
  int samsu ;
  public void excal(){
  
  for(samsu=0;samsu&gt;San.length();samsu++)
  {
      swi=San.charAt(samsu);
  }   
  }
  }
  </code></pre>
  
  <p>Also please suggest me any other methods to do the same</p>