Remove unnecessary imports from Java's problem 72.