codice:
char c=stringa.charAt(0);
int ascii=(int)c;
System.out.println("ASCII value: "+ascii);