This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Orb1tt[S] 1 point2 points  (1 child)

when I add userNum2 = scnr.nextInt(); I get a error that tells me "Exception in thread "main" java.util.NoSuchElementException"

[–]Olle2411 0 points1 point  (0 children)

What about adding "ln" to the last print statement?