I am trying to run a simple code, in which the first few lines are
**System.out.println("Enter the number of nodes\n");
BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));
int n = bufferRead.read();
System.out.println(n);**
This part of the code is in between the try-catch pair. I just have to display the number of nodes, but instead of displaying the value of n, it displays the values preceeding 48. For example, if the input for n is 1, the output should be "1", but it displays "48". If the input is 2, it displays 49 and so on.
Please assist me with this and enlighten me with your knowledge. Thanks.