Remove unneeded java.io.* import
In Java problem 1, use named variable for answer