[java] Convert 4 bytes to int