public static void main(String args[]){
int x=1 ;
try{
x=(int) System.in.read();
}
catch(Exception e){}
System.out.println(x);
}
When I input "1" the output is 49. I cant understand why




Posted 28 December 2012 - 11:50 PM
public static void main(String args[]){
int x=1 ;
try{
x=(int) System.in.read();
}
catch(Exception e){}
System.out.println(x);
}
Posted 28 December 2012 - 11:59 PM

POPULAR
Posted 29 December 2012 - 05:48 AM
Posted 29 December 2012 - 07:58 AM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
