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,

 

Source: http://selenium-makeiteasy.blogspot.com