Java Program To Print Alphabets
Chapter:
Miscellaneous
Last Updated:
19-06-2016 20:36:10 UTC
Program:
/* ............... START ............... */
public class JavaPrintAlphabet {
public static void main(String args[]) {
char ch;
for (ch = 'a'; ch <= 'z'; ch++)
System.out.print(ch);
}
}
/* ............... END ............... */
Output
abcdefghijklmnopqrstuvwxyz
Notes:
-
Program uses the Java character variable and built-in ordering of the character variable values.
Tags
Java Print Alphabets, Java