How can I convert a Char type to a Integer type?
凯文 2002-04-17 10:14:35 I want this function:
receive a char: '3' by System.in.read();
and convert it to integer 3;
but I always get 51 now.
I know 51 is the ASCII for 3;
How can I convert char '3' to integer 3?
waiting online...