X Tutup
Skip to content

Commit ab17cb4

Browse files
author
Devansh K Shukla
committed
initialize a field of type character
1 parent f28f40d commit ab17cb4

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.idea/workspace.xml

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/io/github/dbc/DuplicateCharactersCounter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class DuplicateCharactersCounter {
1313
public Map<Character, Integer> countDuplicateCharacters(String string) {
1414
HashMap<Character, Integer> map = new HashMap<>();
1515
for (int i = 0; i < string.length(); i++) {
16-
16+
char ch = string.charAt(i);
1717
}
1818
return Map.of();
1919
}

0 commit comments

Comments
 (0)
X Tutup