I was reading on the difference between Scanner and BufferedReader on stackoverflow.
In one of the answers: https://stackoverflow.com/a/14292918
It was mentioned that there is a difference in
Integer.parseInt(br.readLine())
and
scanner.nextInt();
Which is how new lines are handled.
Can someone expand on this, preferrably with an example ?