Is there a function with the scanner class to allow for the user's input to just go on one line instead of two.
I am using Scanner scan = new Scanner (System.in)
with scan.nextInt
and it is coming up with
10
4
and I want it to appear on one line with a space like 10 4
Thank you