NoSuchElementException(), simple program not behaving right with Scanner class.

Printable View