Quick Java program to run the Hailstone problem