i have confusion, like when we give Char var='A';how is it stored in memory???is its value dat is 65 stored in bits??if yes wat is the value of 'a' (smallcase)...
the value of A-Z is 65-90,
i have program which prints A-Z,
class chararray{
public void createArray(){
char[] s;//declaring array
s=new char[26];//assigning size
for(int i=0; i<26; i++)
{
s[i]=(char)('A' +i);
}
for(char values : s)
System.out.println(values);
}
public static void main(String[] args){
chararray c=new chararray();
c.createArray();
}
}
i want to print a-z in program.. if i give s=(char)('a' +i); i am not getting output as a,b,c,d......y,z. can anybody explain??please