I need to read a text file and count the occurrence of all the string in that file in java.... Pls can any one help me with the code
<p>If the file contains APPLE MANGO APPLE BANANA APPLE MANGO
I need the output as 
  APPLE occurs 3 times
  MANGO occurs 2 times
  BANANA occurs 1 times</p>
