// method from GregorianCalendar class to check whether a year is leap or not // will print true if a year is a leap year, otherwise false if a year is not a leap year ...
arr1[3] = 46; // initializing the 4th element of the array arr1 int[] arr2; // declaration arr2 = new int[5]; // then memory allocation int[] arr3 = {1,2,3,4,5 ...