how to print alphabets using java programming

First Method:

char cAlpha = ‘A’;

do {
System.out.println(cAlpha );
cAlpha ++;
} while (cAlpha <= ‘Z’);

 

Second method:

char cAlpha = ‘a’;

while (cAlpha <= ‘z’) {
System.out.println(cAlpha);
cAlpha ++;
}

Third Method :

class PrintAlphabets
{
public static void main(String args[])
{
char chAlpha;

for( chAlpha= ‘a’ ; chAlpha<= ‘z’ ; chAlpha++ )
System.out.println(chAlpha);
}
}