Created
May 2, 2013 14:02
-
-
Save sivabudh/5502391 to your computer and use it in GitHub Desktop.
Comparing Java & Ruby Hashmap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creating a HashMap in Java | |
Map<String, String> someMap = new HashMap<String, String>(); | |
someMap.put("base_uri", "http://localhost:3000/users"); | |
// Creating a hash map in Ruby | |
someMap = { | |
"base_uri": "http://localhost:3000/users" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment