Advertisement
rherrick

Double brace initialization

May 29th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.15 KB | None | 0 0
  1. private final Map<String, String> _things = new Hashtable<String, String>() {{
  2.     put("1", "one");
  3.     put("2", "two");
  4.     put("13", "three");
  5. }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement