Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.21 KB | None | 0 0
  1. Map<String, Integer> salary = Maps.newHashMap();
  2. salary.put("John", 1000);
  3. salary.put("Jane", 1500);
  4. String result = Joiner.on(" , ").withKeyValueSeparator(" = ")
  5.                                     .join(salary);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement