@kpostal10/

AgreeableUnnaturalParser

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import java.util.*;
class Main {
  public static void main(String[] args) {
PriorityQueue<String> pq =  new PriorityQueue<String>();
   pq.add("Nuemann");
   pq.add("Turing");
   pq.add("knuth");
   pq.add("Dijkstra");
   System.out.println(pq.poll());
   pq.add("Shannon");
   pq.add("Gosling");
   System.out.println(pq.peek());
  }
}