A recipe programme in java