Convert C Code To Java