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
public static void main(String args[]){ int x=1 ; try{ x=(int) System.in.read(); } catch(Exception e){} System.out.println(x); }