From b066f14b49ccbc084de96613448e3745b8aefeff Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Wed, 26 Nov 2025 04:28:52 +0000 Subject: [PATCH] [Sync Iteration] java/leap/1 --- solutions/java/leap/1/src/main/java/Leap.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 solutions/java/leap/1/src/main/java/Leap.java diff --git a/solutions/java/leap/1/src/main/java/Leap.java b/solutions/java/leap/1/src/main/java/Leap.java new file mode 100644 index 0000000..13efe68 --- /dev/null +++ b/solutions/java/leap/1/src/main/java/Leap.java @@ -0,0 +1,17 @@ +class Leap { + + boolean isLeapYear(int year) { + if (year % 400 == 0){ + return true; + } + else if(year % 100 == 0) + { + return false; + } + else if(year % 4 == 0){ + return true; + } + return false; + } + +}