addends
Chat with our AI personalities
The simplest would be to put the numbers into an int[] (integer array) and pass that to java.util.Arrays.sort(int[]) (a static method), which will sort the array in ascending numerical order. Use a float[] or double[] if you need to sort non-whole numbers. You can also use the Collections.sort(List) method to sort the List directly. Or the Collections.sort(List, Comparator) if you wish to specify your own sorting criteria.
4th
Numeric array has numbers(+integers) that represent the values Associative array has strings that represent the values
An array of numbers is used in mathematical problems.
matrix