why doesn't the java queue have an isEmpty method? code example Example: queue.isempty java while (!QUEUE.isEmpty()) { QUEUE.remove(); }