Java solutions to Project Euler