Create a java operation that will determine


Create a Java operation that will determine if a given year is a leap year. Your operation should accept an integeral value (...-3, -2, -1, 0, 1, 2, 3,...) for the year and return a boolean value (true/false) indicating if the year is boolean (true) or not (false). Your operation may assume that the year is provided is non-negative. Your operations should be declared as follows:

public static boolean isLeap(int year) { ... }

The output of your application should be to the console indicating whether or not the year is leap. For example, your main might look as follows:

public static void main (String args[]) {

System.out.println("2002 leap?" + isLeap(2002));

}
and the output from running the above would be

2002 is leap? false.  

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Create a java operation that will determine
Reference No:- TGS094582

Expected delivery within 24 Hours