fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.text.DecimalFormat;
  7.  
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Map<String, String> map1 = new HashMap<>();
  13. Map<String, String> map2 = new HashMap<>();
  14.  
  15. map1.put("26970", "abc");
  16. //map2.put("abc", "xyz");
  17.  
  18. String out1 = map1.get("abc");
  19.  
  20. System.out.println(map1);
  21. System.out.print(out1);
  22.  
  23. }
  24.  
  25. }
Success #stdin #stdout 0.07s 54352KB
stdin
Standard input is empty
stdout
{26970=abc}
null