Illegal start of type error in Java