Nuacht

📌 In order to find duplicate words, we first need to split the sentence into words. For that use split() method from String Class, this will return array of strings. 📌 After getting the list of ...
package day08Arrays.homework2; public class NumberOfDuplicateWords { public static void main (String [] args) { //This program counts the number of duplicate words in a given string.