How to search a particular character from string and find how many times it occured
<p>Store the following sentence in String</p>

<pre><code>“JAVA IS TOUGH LANGUAGE" 
</code></pre>

<p>I would like to ask a user to provide a character as an input and then print the total number of occurrence of that character in the above sentence. Moreover if a user wants to search a particular phrase or character in string he/she should able to search it.</p>

<p>Please tell me the simple way of beginners.</p>
