stand-alone methods, readLine() --> next(), System.out duplication fixed