title: Finding Frequency Of Characters In A Stirng In Java
body: <p>I have to do this</p>
  
  <pre><code>INPUT:SUCCESS
  
  OUTPUT:
  C - 2
  E - 1
  S - 2
  U - 1
  </code></pre>
  
  <p>I am aware this question has been asked here:
  <a href="https://stackoverflow.com/questions/6712587/counting-frequency-of-characters-in-a-string">How to count frequency of characters in a string?</a></p>
  
  <p>But my query is that I need to solve the problem by only using two outside classes Scanner or StringTokenizer. I cannot use any other library.</p>
  
  <p>PS:The characters have to be in alphabetical order</p>