Created
November 15, 2014 02:06
-
-
Save XVicarious/20c05b7252d0e6ecf301 to your computer and use it in GitHub Desktop.
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
public HashMap<Character, Integer> getCharacterCounts() { | |
HashMap<Character, Integer> tweetCharacters(); | |
//iterate through tweets | |
//for each character in string | |
if (tweetCharacters.containsKey(/*CHARACTER*/)) { | |
tweetCharacters.put(/*CHARACTER*/, tweetCharacters.get(/*CHARACTER*/) + 1); | |
} else { | |
tweetCharacters.put(/*CHARACTER*/, 1); | |
} | |
//end for | |
//end iteration | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment