problem_19.java
private static boolean isLeapYear(int year) {
    if (year % 4 != 0) { return false; }
      else if (year % 100 != 0) { return true;  }
        else if (year % 400 != 0) { return false; }
          else {  return true;  }
  }
//Algorithm to check if the current year is a leap year:
Algorithm to check if the current year is a leap year.
Algorithm to check if the current year is a leap year .
private static boolean isLeapYear(int year) {
    if (year % 4 != 0) { return false; }
      else if (year % 100 != 0) { return true;  }
        else if (year % 400 != 0) { return false; }
          else {  return true;  }
  }
private static boolean isLeapYear ( int year ) { if ( year % 4 != 0 ) { return false ; } else if ( year % 100 != 0 ) { return true ; } else if ( year % 400 != 0 ) { return false ; } else { return true ; } }
Algorithm to check if the current year is a leap year:
Algorithm to check if the current year is a leap year :