+ 1
How to convert 1=a in Java program?
4 odpowiedzi
+ 4
TARUN SAI create a Array of char or Strings of alphabets.
Do as follows
char arr={'a', 'b', // to z};
int user = // take a input from user;
System.out.println(arr[user-1]);
// if user puts 2 than output will be 'b'
+ 2
What do you mean by 1=a?
+ 1
👍
0
If user give a number between 1 to 26 then output will be in alphabetical.