Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active August 28, 2020 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5cc0aa77dffbc8a9bf5b3f6da53598b2 to your computer and use it in GitHub Desktop.
Save parzibyte/5cc0aa77dffbc8a9bf5b3f6da53598b2 to your computer and use it in GitHub Desktop.
public static boolean esBisiesto(long anio) {
// Divisible entre 4, y (NO divisible entre 100 o divisible entre 400)
return anio % 4 == 0 && (anio % 100 != 0 || anio % 400 == 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment