Let’s see a program to print alphabet in java
package programnew; public class PrintAlphabate { public static void main(String[] args) { for (char c = 'a'; c <= 'z'; c++) { System.out.println(c); } } }
Output is :-
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