Write a program to print alphabets ?

This program print alphabets a, b, c, ..., z. Here we print alphabets in lower case.


								/**
 *
 * @author Mindclues
 */
class PrintAlphabets {

    public static void main(String args[]) {
        char ch;
        System.out.println("Alphabets -");
        for (ch = 'a'; ch <= 'z'; ch++) {
            System.out.print(ch + " ,");
        }

    }
}
							

								
Alphabets -
a ,b ,c ,d ,e ,f ,g ,h ,i ,j ,k ,l ,m ,n ,o ,p ,q ,r ,s ,t ,u ,v ,w ,x ,y ,z
							

Related Articles

post a comment