Add java code.
Merge pull request #2 from matscube/SRM631

Add java code.