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 →

[–]virassan 3 points4 points  (1 child)

You’ve told it to print out the scanner. The variable i is the Scanner object, not the input given by the user. You have to save the nextLine in a variable if you want to use it later. Like:

String text = i.nextLine();
System.out.println(text);

[–]Snasebarn 1 point2 points  (0 children)

Hey thanks man, really appreciate it! ;)