Trying to compress some Java