How to get Alphabet from the given integer value?

java

Solution

Try this

int i = 1;
System.out.println((char)(i+'A'-1));

Problem

How to get alphabets by the numeric postion in java ? Suppose i have entered 1 then as a output i need to get A how can i get the alphabets position in java? Thanks in advance.

Original source