A java prgm to find & print the duplicate words and their no.of occurrences in string : <p><a href="https://i.stack.imgur.com/GYhJZ.png" rel="nofollow noreferrer">enter image description here</a></p>

<p>Write a program to find the duplicate words and their number of occurrences in a string.
Thee program what i have type has been attached. when i run the program, its not displaying the output except for it is asking-</p>

<p>"Enter the sentence"
"It has eaten a lot of it"</p>
