Skip to content

Instantly share code, notes, and snippets.

@caseycrites
Created July 31, 2013 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseycrites/6123854 to your computer and use it in GitHub Desktop.
Save caseycrites/6123854 to your computer and use it in GitHub Desktop.
public static final Map<String, String> STATIC_MAP;
static {
Map<String, String> someMap = new HashMap<String, String>();
someMap.put("hey", "you");
someMap.put("what's", "up");
STATIC_MAP = Collections.unmodifiableMap(someMap);
}
Set<String> someSet = new HashSet<String, String>(Arrays.asList("1", "2", "3"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment