📅  最后修改于: 2022-03-11 14:52:12.039000             🧑  作者: Mango
Queue yourQueue=new LinkedList<>();//or similar
System.out.println(yourQueue);//print it in a single line
//print manually
for(Something elem:yourQueue){
System.out.println(elem);
}