Solutions in Java to Project Euler problems