Java helper and tips