|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphnetwork.util.ArrayUtils
public class ArrayUtils
Constructor Summary | |
---|---|
ArrayUtils()
|
Method Summary | |
---|---|
static int |
getIndexOfMaximum(int[] a)
Find and returns the index of the maximum number in the array. |
static int |
getIndexOfMinimum(int[] a)
Find and returns the index of the minimum number in the array. |
static int[] |
getIndicesOfMinimum(int[][] a)
Find and returns the index of the minimum number in the array. |
static int |
getMaximum(int[] a)
Find and returns the maximum number in the array. |
static int |
getMinimum(int[] a)
Find and returns the minimum number in the array. |
static int |
getMinimum(int[][] a)
Find and returns the minimum number in the array. |
static void |
printArray(double[] a)
Prints the contents of the array. |
static void |
printArray(int[] a)
Prints the contents of the array. |
static void |
printArray(int[][] a)
Prints the contents of the array. |
static void |
printArray(java.lang.Object[] a)
Prints the contents of the array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayUtils()
Method Detail |
---|
public static void printArray(java.lang.Object[] a)
a
- the array to print the contents ofpublic static void printArray(double[] a)
a
- the array to print the contents ofpublic static void printArray(int[] a)
a
- the array to print the contents ofpublic static void printArray(int[][] a)
a
- the array to print the contents ofpublic static int getMaximum(int[] a)
a
- the array to search
public static int getIndexOfMaximum(int[] a)
a
- the array to search
public static int getMinimum(int[] a)
a
- the array to search
public static int getIndexOfMinimum(int[] a)
a
- the array to search
public static int getMinimum(int[][] a)
a
- the array to search
public static int[] getIndicesOfMinimum(int[][] a)
a
- the array to search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |