Write a method that computes the average of the values in an array of doubles. Write a
Question:
Write a method that computes the average of the values in an array of doubles.
Write a complete Java class that will create a 2D array of randomly generatedintswith dimensions of 5 rows and 10 columns. Print the values of each cell to a 5x10 table.
(Note: a complete Java class means the code should compile and run without issue. Be sure the output displays a set of randomintsformatted in 5rowsby 10 columns.
You have an int array namedexamScoresthat is 1000 elements in length.
Provide a single line of code that would sort theexamScores. (Note: You do not need to provide the import statements supporting the line of code)
You have an int array namedexamScorethat is 100 elements in length.
Provide a single line of code that would search theexamScoresfor values that
are 50.
Describe an application that would be a good choice for using 3D array.