mayah/ADT2 — pull request #2 by TomohikoK (2013-04-17 19:51:45+00:00)
Title: should not close standart input scanner

An execution of scanner.close closes System.in as well, thus next execution of scanner.nextInt throws NoSuchElementException.
To avoid this situation, just leave scanner open.