Collatz on the Euler Project in Java.