+ 1

How to convert 1=a in Java program?

10th Mar 2020, 1:32 PM
TARUN SAI
TARUN SAI - avatar
4 Réponses
+ 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'
10th Mar 2020, 2:10 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 2
What do you mean by 1=a?
10th Mar 2020, 1:33 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
👍
11th Mar 2020, 11:05 AM
TARUN SAI
TARUN SAI - avatar
0
If user give a number between 1 to 26 then output will be in alphabetical.
10th Mar 2020, 1:36 PM
TARUN SAI
TARUN SAI - avatar