Program to find the duplicate words and its count in Java

Output is –

is : 2
good : 2

Top