added Java solution to Collatz
Merge pull request #24 from rramchand/patch-1

added Java solution to Collatz