Skip to content

Commit b715f61

Browse files
authored
Create alphabet.java
1 parent 928f9c7 commit b715f61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

alphabet.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class alphabet {
2+
3+
public static void main(String[] args) {
4+
5+
char c = '*';
6+
7+
if( (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
8+
System.out.println(c + " is an alphabet.");
9+
else
10+
System.out.println(c + " is not an alphabet.");
11+
}
12+
}

0 commit comments

Comments
 (0)