Find most repeated Character in a String

Here I'm going to show simple way to find the most repeated  character in a string using a console application.this is the interface of the application:


This class is responsible for logic:



3 comments:

  1. Instead of first character, If I want to find the character which has greater ASCII value ..How I can do that ??

    // get maximum first character when equal no of characters available - Scenario is this

    ReplyDelete