if(count == 4){
qFinal.enqueue(q.peek());
if(count3 == 0){
System.out.println(qFinal);
break;
}
else{
sort(qFinal);
}
}
this code is inside a while loop, and with the break statement, it should break out of the loop right? instead i think the program also executes the sort(qFinal) method b/c after it prints qFinal correctly, the program gives me an error.