Skip to content

Instantly share code, notes, and snippets.

[
{
"market": "",
"userId": "",
"deviceAccount": "",
"playerState": {
"remainStamina": 49,
"clearStoryDungeonNumNormal": 91,
"clearStoryDungeonNumHard": 81,
"grade": 17,
@genman
genman / GetFirstNonRepeatedLetter.java
Created April 13, 2015 15:34
getFirstNonRepeatedLetter
class GetFirstNonRepeatedLetter
static final int REPEAT = -1;
public static Character getFirstNonRepeatedLetter(String word) {
// check if the word is null
if (word == null) throw new NullPointerException()
// store a count of character occurrences
Map<Character, Integer> map = new HashMap<Character, Integer>();