How can I find distinct repetitive character in string using Java.
For the string 4567895443577
Here, the first distinct repetitive character is 5
Ip:n:1 output:4
n=2 op=5
n=3 op=7
n=4 op=doest exist
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This can be done by the following code.
I have used HashMap keys as an input characters and value as a counter.