Update Solution.java

delete print()