28 |
|
* @author Martin Buchholz |
29 |
|
*/ |
30 |
|
|
31 |
< |
import java.util.*; |
31 |
> |
import java.util.Arrays; |
32 |
> |
import java.util.Iterator; |
33 |
> |
import java.util.NoSuchElementException; |
34 |
> |
import java.util.PriorityQueue; |
35 |
> |
import java.util.Queue; |
36 |
|
|
37 |
|
public class ForgetMeNot { |
38 |
|
private static void checkQ(PriorityQueue<Integer> q, Integer...elts) { |
61 |
|
} |
62 |
|
|
63 |
|
private static void realMain(String[] args) throws Throwable { |
64 |
< |
final PriorityQueue<Integer> q = new PriorityQueue<Integer>(); |
64 |
> |
final PriorityQueue<Integer> q = new PriorityQueue<>(); |
65 |
|
Iterator<Integer> it; |
66 |
|
|
67 |
|
//---------------------------------------------------------------- |