Back To Java Arrays Index
//program to input a string or a char array from the user and then display it public class chararray { public static void main(String[] args) { char []name={'a','b','c','d','e'}; int i; for(i=0;i<5;i++) { System.out.println(name[i]); } } }