Advertisement
Guest User

Untitled

a guest
Aug 6th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1.     public static void main(String[] args) throws Exception {
  2.         Map<String, String> stringMap = new TreeMap<>();
  3.         stringMap.put("a", "A");
  4.  
  5.         Map<?, ?> map = stringMap;
  6.         System.out.println(map.containsKey(1));
  7.     }
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement