Following example shows how to convert an ascii value to its char representation.
Output:
A
I would like to know your comments and if you liked the article then please share it on social networking buttons.
public class AsciiToChar {
public static void main(String[] args) {
int ascii=65;
char c=(char)ascii;
System.out.println(c);
/* OR System.out.println((char)65);*/
}
}
Output:
A
u r shit
ReplyDeleteThanks a lot for your answer, it was quite helpful
ReplyDeleteLOL u r great
ReplyDeleteThanks!
ReplyDeleteso Fucking close....
ReplyDelete