Javatpoint Logo

how to count repeated words in a given String

By: cmunio*** On: Fri Mar 17 15:52:27 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
in given program I am given a string like "hai hello hai how are hai you how old are you"
in that above string hai and how are repeated.How to count the words
Up0Down