code work in java