title: copying char to char array reverse
body: <pre><code>public class palindrome {
  
     public static void main(String args[]) {
       String name="caac";
       char com[]=name.toCharArray();
  
       char[] con=new char[4];
       for(int i=0,j=3;i&lt;com.length;i++,j--)
       {
  
           com[j]=con[i];
           System.out.println(i+" "+j+"value of i "+con[i]);
  
       }
  
     }
  }
  </code></pre>
  
  <p>i want to copy char com to char c in reverse, i got blank output, whats wrong with this program.what correction should i made.this question body does not meet our quality that line i dont want to see stackoverflow.</p>