gift done in java