Created
June 2, 2014 09:25
-
-
Save fado/3c1286178cf8effa4720 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(4); | |
queue.add(26); | |
queue.add(1); | |
queue.add(7); | |
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