Thursday, May 19, 2011

for each element of the array

for ( char character : charArray )
System.out.print( character );


//here char array is the array and character is each element of chararray