01.
public
class
SortArray {
02.
public
static
void
main(String[] args) {
03.
int
[] array = {
3
,
2
,
5
,
4
,
1
,
1
,
1
,
1
,
10
,
9
};
04.
Arrays.sort(array);
05.
for
(
int
i =
0
; i < array.length; i++) {
06.
System.out.print(array[i] +
" "
);
07.
}
08.
}
09.
}