// best answer is to look at documentation from Oracle https://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html