the normal codes in java