How to count number of repeated characters in a string java July 8, 2019 16 32 64 128 1358. number of substrings containing all three characters java