Remove some Java warnings: 1) Scanner should be closed after use. 2) @SupressWarnings("unchecked") seems not necessary for recent release of Eclipse (Kepler) in some cases.