> I am trying to input a char and output the ascii code. I assume there is
> a built in method in java to do this but i don't know what it is.
Have a look at this:char c= 'A';
System.out.println("char is: "+c);
System.out.println("code is: "+((int)c));
kind regards,
Jos