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.util.HashMap;
  7. import java.util.Map;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
  10. class Ideone
  11. {
  12. public static void main (String[] args) throws java.lang.Exception
  13. {
  14.  
  15. Map<String, String> occupations = new HashMap<String, String>();
  16.  
  17. occupations.put("FRONTEND", new String("programador front-end"));
  18. occupations.put("BACKEND", new String("programador back-end"));
  19. occupations.put("MOBILE", new String("programador mobile"));
  20. occupations.put("GENERIC", new String("programador"));
  21.  
  22. String profession = occupations.get("MOBILE");
  23. String mailContent = String.format("Assim que tivermos oportunidade para %s, entraremos em contato.", profession);
  24. System.out.println(mailContent);
  25.  
  26. }
  27. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
Assim que tivermos oportunidade para programador mobile, entraremos em contato.