added Java solution to Collatz