字符串排序 用例不通过
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
Queue<String> pq = new PriorityQueue<>(n);
for (int i = 0; i < n; i++) {
pq.offer(sc.next());
}
System.out.println(pq.stream().reduce((x, y) -> x + " " + y).get());
}
}
为什么会有一半用例不通过啊 想知道哪些用例没通过

