How to use Scanner
The java.util.Scanner class built into java can be used to read inputs. It can for example be used to set up an interactive command line session, where you prompt the user for stuff and your program acts on what the user types in. You can also point it at a file or network connection if you like. TL;DR: Do not use nextLine() Phew, glad we got that out there. If you don...
Nov 16, 2017 — 5 minute(s) read