I'm an extreme beginner in java and programming world. The problem may appear dumb, but please help me. Every time I insert a number that is assigned to a variable, the number does not match, this is what happen: If I insert 1 = 49 2 = 50 3 = 51 4 = 52 5 = 53 6 = 54 7 = 55 8 = 56 9 = 57 However when I for example insert 35, it'll appear 53, because it just takes the first number (3). Thank you. Edit: This is the code: class Max {
public static void main(String args[]) throws IOException {
int a;
a = System.in.read();
System.out.println("a is " + a);
}
}
That's what is printed: 1 // input a is 49