Skip to content

Commit 2e8d915

Browse files
committed
add SortArray.java
1 parent 69f0ea1 commit 2e8d915

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/SortArray.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import java.util.Arrays;
2+
3+
public class SortArray {
4+
5+
public static void main(String[] args) {
6+
7+
int[] array = {1, 2, 3, -1, -2, 4};
8+
9+
Arrays.sort(array);
10+
11+
System.out.println(Arrays.toString(array));
12+
13+
}
14+
15+
}

0 commit comments

Comments
 (0)