I'm very new with Java, so I wanted to create simple program, which would ask me to input some random value, and then to print it. Problem is when I input number 1, output is 51, input 3-output 51, input 77-output 55. What is wrong with this? Code looks like this:
public static void main(String[] args) throws IOException
{
System.out.print("Input:");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int val=br.read();
System.out.print("Output:");
System.out.println(val);
}