Write the simplest program possible in Java containing your 'main' and any other functions you may need that will: A. Read a sequence of words up to a maximum of 64 words from std input. No other prompting or input is needed. Store the words into a primitive array - do not use advanced structures like vectors, arraylists, lists or maps. B. Check to see if there any duplicate words in the input read. C. If there are no duplicates, print out to std output the message 'No Duplicates'. D. If there are duplicates, print out on separate lines each word that is duplicated and the number of instances of that word. The results should be sorted in ascending order. E. If you write helper functions to your main, ensure that all input and output happens only in main. F. Take screenshot of your program execution with the following samples. G. Your program will be tested with and should display the output below
Write the simplest program possible in Java containing your 'main' and any other functions you may need that will:
A. Read a sequence of words up to a maximum of 64 words from std input. No other prompting or input is needed. Store the words into a primitive array - do not use advanced structures like
B. Check to see if there any duplicate words in the input read.
C. If there are no duplicates, print out to std output the message 'No Duplicates'.
D. If there are duplicates, print out on separate lines each word that is duplicated and the number of instances of that word. The results should be sorted in ascending order.
E. If you write helper functions to your main, ensure that all input and output happens only in main.
F. Take screenshot of your program execution with the following samples.
G. Your program will be tested with and should display the output below
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images