Skip to content

Commit fb012e0

Browse files
author
Devansh K Shukla
committed
add an object of type HashMap<Character, Integer>
1 parent 77d60ff commit fb012e0

File tree

3 files changed

+33
-21
lines changed

3 files changed

+33
-21
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 30 additions & 20 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.dbc;
22

3+
import java.util.HashMap;
34
import java.util.Map;
45

56
public class DuplicateCharactersCounter {
@@ -10,6 +11,7 @@ public class DuplicateCharactersCounter {
1011
* @return Map with characters and their count.
1112
*/
1213
public Map<Character, Integer> countDuplicateCharacters(String string) {
14+
HashMap<Character, Integer> map = new HashMap<>();
1315
return Map.of();
1416
}
1517
}

0 commit comments

Comments
 (0)