Java tutorial
import java.util.PriorityQueue; import java.util.SortedSet; import java.util.TreeSet; public class Main { public static void main(String args[]) { SortedSet<String> set = new TreeSet<String>(); PriorityQueue<String> p = new PriorityQueue<String>(set); System.out.println(p); } }