Java Array Examples
Also see: http://www.java.sun.com/docs/books/tutorial/java/data/arrays.html

See notes at the bottom of the page, below the program listing...
public class JavaSamples
{
    public static void main(String args[])
    {
       char charArray[] = new char[10];
       String string1 = new String("Hello World");
       char charArray2[] = new char[80];
       int i;

       charArray[0] = 'A'; charArray[1] = 'B';
       charArray[2] = 'C'; charArray[3] = 'D';

/*  The above could also be initialized as:

       charArray[] = {'A','B','C','D'};
OR
       charArray[] = ("ABCD").toCharArray();
*/

       System.out.println("Printing the character array:");
       for(i = 0; i < charArray.length; i++) {
          System.out.println(charArray[i] + "  " + (int)charArray[i] +
                           "  " + Integer.toBinaryString((int)charArray[i]) +
                           "  " + Integer.toHexString((int)charArray[i]));
       }
       System.out.println();
     
       System.out.println("Printing the string:");
       for(i = 0; i < string1.length(); i++)
       {
          System.out.println(string1.charAt(i) + "  " + (int)string1.charAt(i) +
                         "  " + Integer.toBinaryString((int)string1.charAt(i)) +
                         "  " + Integer.toHexString((int)string1.charAt(i)));
       }
       System.out.println();
       
       System.out.println("Printing the string converted to a character array:");
       charArray2 = string1.toCharArray();
       for(i = 0; i < charArray2.length; i++) {
          System.out.println(charArray2[i] + "  " + (int)charArray2[i] +
                           "  " + Integer.toBinaryString((int)charArray2[i]) +
                           "  " + Integer.toHexString((int)charArray2[i]));
       }
       System.out.println();

    }
}