Guest User

Untitled

a guest
Apr 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Map<String, String> tm = new Map<String, String>{
  2. 'Monday'=>'u041fu043eu043du0435u0434u0456u043bu043eu043a',
  3. 'Tuesday'=>'u0412u0456u0432u0442u043eu0440u043eu043a',
  4. 'Wednesday'=>'u0421u0435u0440u0435u0434u0430',
  5. 'Thursday'=>'u0427u0435u0442u0432u0435u0440',
  6. 'Friday'=>'u041f'u044fu0442u043du0438u0446u044f',
  7. 'Saturday'=>'u0421u0443u0431u043eu0442u0430',
  8. 'Sunday'=>'u041du0435u0434u0456u043bu044f'};
  9. System.debug(LoggingLevel.ERROR, '@@@ v: ' + String.join( new List<String>(tm.keySet()), ',') );
  10. System.debug(LoggingLevel.ERROR, '@@@ v: ' + tm.keySet() );
  11.  
  12. Map<String, String> currencyMap = new Map<String, String>();
  13. currencyMap.put('France','Euro'); currencyMap.put('Japan', 'Yen');
  14. // Iterate through the map elements.
  15. for (String mapKey : currencyMap.keySet()) {
  16. System.debug('Key: ' + mapKey +
  17. ', Value: ' + currencyMap.get(mapKey)); }
  18.  
  19. // The output is: Key: France, Value: Euro Key: Japan, Value: Yen
Add Comment
Please, Sign In to add comment