# | Line 33 | Line 33 | public class Cache { | |
---|---|---|
33 | private static final int MAP_SIZE = 10; | |
34 | private static final int NUM_KEYS = 100; | |
35 | ||
36 | < | public static void main(String[] args) throws Exception { |
36 | > | public static void main(String[] args) throws Exception { |
37 | Map m = new LinkedHashMap() { | |
38 | protected boolean removeEldestEntry(Map.Entry eldest) { | |
39 | return size() > MAP_SIZE; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |