dsAverage of an array java This is a Java Program to Calculate Sum & Average of an Array. Enter size of array and…byJohn