Java Program to find the frequency of a character.

Output:


2. We will see the example where we will get the String from the user inputs in the program as shown below:

Output: