Home » Java Program to find duplicate characters in a string

Java Program to find duplicate characters in a string

by Online Tutorials Library

How do you find duplicate characters in a string?

Following program demonstrate it.

File: DuplicateCharFinder .java

Output:

   is 3 times  i  is 2 times  n  is 2 times  y  is 2 times  
Next TopicJava String FAQs

You may also like