Skip to content

Commit 3317f7b

Browse files
committed
Arrays sort test case?
1 parent fc2bb00 commit 3317f7b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package edu.columbia.cs.psl.test.chroniclerj;
2+
3+
import java.util.Arrays;
4+
import java.util.List;
5+
6+
public class ArraysSortTestCase {
7+
8+
static List<Integer> list;
9+
10+
public static void main(String[] args) {
11+
Integer[] array={7,5,9,3,6,0,2,4};
12+
13+
System.out.println("before sort: \n" + Arrays.toString(array));
14+
15+
Arrays.sort(array);
16+
17+
System.out.println("after sort: \n" + Arrays.toString(array));
18+
19+
list.add(0);
20+
}
21+
}

0 commit comments

Comments
 (0)