Repeated Sub String
Repeated Sub String
System.out.println(result);
list.add(ch);
}
System.out.println(sb.toString());
Map<Object, Long> optional = list.stream().sorted().filter(n -> n.equals('a'))
.collect(Collectors.groupingBy(n -> n, Collectors.counting()));
System.out.println(optional);
long val = 0;
for (Map.Entry<Object, Long> entry : optional.entrySet()) {
// Object key = entry.getKey();
val = entry.getValue();
return val;
}
return val;