/** * Determine if a year is a Leap Year * * If a year is divisible by 4, but not by 100, the year is a * leap year EXCEPT that years divisible by 400 are also * leap years. For example, the year 2000 was a leap year * * Prompt the user to enter a year. * * Output a message telling whether or not the year is an * Leap Year * * @author "put your name here" */ public class LeapYear { public static void main(String[] args) { //Use print to keep cursor on same line //Use flush to "flush" the output buffer System.out.print("Please enter a year: "); System.out.flush(); int year = Keyboard.readInt(); } }