I've always seen a lot of confusion between (usually) beginners on the Java language about the use of Scanner. As someone who got a bit of knowledge on Java SE, I think I'm able to write a bit of content to help those who are struggling on that problem, just as I did in prior contacts.
As a use case, let's use the following code fragment:
Scanner s = new Scanner(System.in);
System.out.println("Enter your name:");
String name = s.next();