Java class scanner