Java code for Project Euler problems.