Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

print queue in java

Queue<Something> 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);
}
 
PREVIOUS NEXT
Tagged: #print #queue #java
ADD COMMENT
Topic
Name
9+1 =