// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class CharArray {
   public static void main(String[] args) {
      char[] c1 = { 'a', 'b', 'c' };
      char[] c2 = new char[] { 'a', 'b', 'c' };
      char[] c3 = new char[3];
      c3[0] = 'a';
      c3[1] = 'b';
      c3[2] = 'c';
      for (int i = 0; i < 3; i++) {
         System.out.println(c1[i] + " " + c2[i] + " " + c3[i]);
      }
   }
}
