나는 대괄호 없이 1, 5, 7, 8, 10, 14 를 원하거든



import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Ex114 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
ArrayList<Integer> arrayList = new ArrayList<>();

for (int i = 0; i < N; i++) {
arrayList.add(sc.nextInt());
}

Collections.sort(arrayList);

System.out.print(arrayList);
}
}