added java translation of C file.