closed Scanner object sc in Test.java