8000 fixed typo in spelling · andro-dev/Java-Coding-Problems@fb1b669 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb1b669

Browse files
author
Divyansh Bhardwaj
authored
fixed typo in spelling
surrogate was written as `suroggate`
1 parent 115606b commit fb1b669

File tree

1 file changed

+1
-1
lines changed
  • Chapter01/P01_CountDuplicateCharacters/src/modern/challenge

1 file changed

+1
-1
lines changed

Chapter01/P01_CountDuplicateCharacters/src/modern/challenge/Strings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static Map<String, Integer> countDuplicateCharactersVCP1(String str) {
5151
// or, like this (this code produce the same result as the commented code above
5252
int cp = str.codePointAt(i);
5353
String ch = String.valueOf(Character.toChars(cp));
54-
if(Character.charCount(cp) == 2) { // 2 means a suroggate pair
54+
if(Character.charCount(cp) == 2) { // 2 means a surrogate pair
5555
i++;
5656
}
5757

0 commit comments

Comments
 (0)
0