(String[] args)
| 47 | "map.isEmpty(): " + map.isEmpty()); |
| 48 | } |
| 49 | public static void main(String[] args) { |
| 50 | test(new HashMap<>()); |
| 51 | test(new TreeMap<>()); |
| 52 | test(new LinkedHashMap<>()); |
| 53 | test(new IdentityHashMap<>()); |
| 54 | test(new ConcurrentHashMap<>()); |
| 55 | test(new WeakHashMap<>()); |
| 56 | } |
| 57 | } |
| 58 | /* Output: (First 11 Lines) |
| 59 | HashMap |