leap year using conditional operator in java