Created
June 2, 2014 09:34
-
-
Save fado/3d8cc49cdd16f6622032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package revision; | |
import java.util.PriorityQueue; | |
import java.util.Queue; | |
public class PriorityQueueRevision { | |
public static void main(String[] args) { | |
Queue<Integer> queue = new PriorityQueue<>(); | |
queue.add(26); | |
queue.add(1); | |
queue.add(7); | |
queue.add(9); | |
queue.add(4); | |
System.out.println("Queue order "+ queue.toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment