Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }
}