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));
More Related Contents:
- Java: Finding the highest value in an array
- How does array work? How to create a basic array data structure using java? [closed]
- Type mismatch: cannot convert from double to double[]
- error: incompatible types: ‘Something’ cannot convert to ‘Something’
- How do I determine whether an array contains a particular value in Java?
- How do I reverse an int array in Java?
- Do Java arrays have a maximum size?
- How do I remove objects from an array in Java?
- Java arrays printing out weird numbers and text [duplicate]
- How to convert an ArrayList containing Integers to primitive int array?
- Comparing two integer arrays in Java
- How to make an array of arrays in Java
- Java – generate Random range of specific numbers without duplication of those numbers – how to?
- What is the most elegant way to check if all values in a boolean array are true?
- Java String array: is there a size of method?
- How to get the Array Class for a given Class in Java?
- Java array with more than 4gb elements
- Find duplicate element in array in time O(n)
- Read .txt file into 2D Array
- How to convert a Byte Array to an Int Array
- Java: Multi-dimensional array vs. one-dimensional
- Arrays in Java and how they are stored in memory
- Java read file and store text in an array
- Multi-dimensional array transposing
- Easiest way to convert a Blob into a byte array
- Find the max of 3 numbers in Java with different data types
- Printing out a 2D array in matrix format
- Array of function pointers in Java [duplicate]
- How to convert a Java String to an ASCII byte array?
- Converting an int array to a String array