Wednesday, May 28, 2014

Print Alphabets

public class PrintAlphabet{
    public static void main(String[] args){
       
        for(char i='a'; i<='z'; i++){
            System.out.print(i+", ");
        }   
    }
}

Output
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,

No comments:

Post a Comment