Home | History | Annotate | Download | only in cts

Lines Matching defs:array

61      * Measures the time taken to sort an array.
67 * The size of the array to sort.
70 private int[] array;
73 array = createArray(ARRAY_SIZE);
77 Arrays.sort(array);
78 assertTrue("Array not sorted", isSorted(array));
97 * Creates an array filled with random numbers of the given size.
100 int[] array = new int[size];
102 array[i] = random.nextInt();
104 return array;
108 * Tests an array is sorted.
110 private static boolean isSorted(int[] array) {
111 int len = array.length;
113 if (array[i] > array[j]) {