1. 2D Array Operations
Write a Java program to perform the following operations on a given 2D array:
- Find the sum of all elements in the array.
- Find the maximum element in the array.
- Find the minimum element in the array.
- Calculate the average of all elements in the array.
public class ArrayOperations {