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> evolutionGroupPartnerGamesMap = new HashMap<String, String>();
  13. Map<String,String> gameDetailsMap = new HashMap<String, String>();
  14.  
  15. evolutionGroupPartnerGamesMap.put("abc", "value");
  16. gameDetailsMap.put("value", "values");
  17.  
  18. String resultss = null;
  19.  
  20. String result = evolutionGroupPartnerGamesMap.get("xyz");
  21.  
  22. if(result == null) {
  23. resultss = gameDetailsMap.get("value");
  24. }
  25.  
  26.  
  27. System.out.println(result);
  28. System.out.print(resultss);
  29.  
  30.  
  31. }
  32.  
  33. }
Success #stdin #stdout 0.09s 54608KB
stdin
Standard input is empty
stdout
null
values