27 |
|
* @summary The firstKey and lastKey |
28 |
|
*/ |
29 |
|
|
30 |
< |
import java.util.*; |
30 |
> |
import java.util.NoSuchElementException; |
31 |
> |
import java.util.SortedMap; |
32 |
> |
import java.util.SortedSet; |
33 |
> |
import java.util.TreeMap; |
34 |
> |
import java.util.TreeSet; |
35 |
|
|
36 |
|
public class SubMap { |
37 |
< |
public static void main(String args[]) throws Exception { |
37 |
> |
public static void main(String[] args) throws Exception { |
38 |
|
SortedMap m = new TreeMap(); |
39 |
|
m.put(new Integer(1), new Integer(1)); |
40 |
|
m.put(new Integer(2), new Integer(2)); |