Question: Complete the code: Leap year, array swap public class Utils /** Determines if {@code year} is leap year or not. A year is a leap

Complete the code: Leap year, array swap public class Utils /** Determines if {@code year} is leap year or not. A year is a leap year if and only if * it is either divisible by 489 r divisible by 4 and not by 100. @param year the target year return {@code true} if (code year} is a leap year; (@code false; otherwise. Capillote https://edabit.com/challenge/6DaniifqufYun2SNBF */ public static boolean isLeap Year(int year) return true; // REPLACE THIS WITH YOUR SOLUTION } ) public class Utils { public static void swapArray(int[] theArray, int i, int ;) > }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
