Search:

Type: Posts; User: lorider93p

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    1,637

    Re: Problem with My Leap Year Calculation

    you could keep your original code also it would work as long as you fix the !== to !=
  2. Replies
    4
    Views
    1,637

    Re: Problem with My Leap Year Calculation

    public static boolean isLeapYear(int year) {

    boolean leap = false;

    if ((year % 4 == 0) && (year % 100 != 0) && (year % 400 == 0))
    {
    leap = true;
    }

    return leap;
  3. Replies
    4
    Views
    1,637

    Re: Problem with My Leap Year Calculation

    public static boolean isLeapYear(int year) {

    boolean leap = false;

    if ((year % 4 == 0) && (year % 100 !== 0) && (year % 400 == 0))
    {
    leap = true;
    }

    return...
Results 1 to 3 of 3