Code example for PriorityQueue

Methods: poll

0
	public static String getError() {
		return errorQueue.peek();
	} 
 
	public static String removeError() {
		return errorQueue.poll();
	} 
 
	public static void removeMessage() { 
		queue.poll();
	} 
}