Write a java program to print A to Z with their UNICODES as follows:
Letter Unicode
A 65
B 66
C 67
and so on
Answers
Answered by
0
Answer:
import java.util.Arrays;
public class Main
{
public static void main(String[] args) {
String x = "QWERTYUIOPASDFGHJKLZXCVBNM";
char[] ch = x.toCharArray();
Arrays.sort(ch);
for(int i = 0; i < ch.length; i++){
System.out.println(ch[i] + " " + (int)ch[i]);
}
}
}
Explanation:
Similar questions