Java solutions for problems in Project Euler