There is a problem with using different Scanner class's methods:
https://christprogramming.wordpress.com/2014/01/30/java-common-mistakes-1/