added Checksum in Java