diff --git a/analyzer-comments/java/leap/avoid_conditional_logic.md b/analyzer-comments/java/leap/avoid_conditional_logic.md new file mode 100644 index 000000000..c827be6e6 --- /dev/null +++ b/analyzer-comments/java/leap/avoid_conditional_logic.md @@ -0,0 +1,3 @@ +# avoid conditional logic + +Consider converting the `if`-statement(s) and/or ternary expressions into a single expression using the `&&` and `||` operators. diff --git a/analyzer-comments/java/leap/no_built_in_methods.md b/analyzer-comments/java/leap/no_built_in_methods.md new file mode 100644 index 000000000..23cb8a788 --- /dev/null +++ b/analyzer-comments/java/leap/no_built_in_methods.md @@ -0,0 +1,8 @@ +# no built-in methods + +Hey there, sneaky! +The purpose of this exercise is to write the logic for checking leap years yourself. +Solve it without using built-in methods from: + +- The `java.time` module; +- The `java.util.GregorianCalendar` class. diff --git a/analyzer-comments/java/leap/use_minimum_number_of_checks.md b/analyzer-comments/java/leap/use_minimum_number_of_checks.md new file mode 100644 index 000000000..77e491017 --- /dev/null +++ b/analyzer-comments/java/leap/use_minimum_number_of_checks.md @@ -0,0 +1,3 @@ +# use minimum number of checks + +Try reducing the number of checks to just three (hint: check the instructions).