solve.java