My code does not give errors, however it is not displaying the minimum and maximum values. The code is:
Scanner input = new Scanner(System.in); int array[]
getMaxValue(array); // get smallest number getMinValue(array);
You are calling the methods but not using the returned values.
System.out.println(getMaxValue(array)); System.out.println(getMinValue(array));