Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and
Posted: Sat May 14, 2022 3:47 pm
Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and minimum values among the values that is included in the array as both positive and negative. For example, for the array (-9,5, 1, 2, 3,-3, 2, -4,-5) only 3, -5, -3,5 will be included in the calculation as the array does not contain negative of other values. Additionally, the average of the negative numbers in the array should be printed.