MCPcopy Index your code
hub / github.com/Tiwarishashwat/InterviewCodes / main

Method main

DuplicateCount.java:3–7  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

1import java.util.*;
2class DuplicateCount{
3 public static void main(String args[])
4 {
5 String s = "SHASHWAT";
6 countDuplicates(s);
7 }
8 public static void countDuplicates(String inp)
9 {
10 HashMap<Character,Integer> map = new HashMap<>();

Callers

nothing calls this directly

Calls 1

countDuplicatesMethod · 0.95

Tested by

no test coverage detected