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
![Sample Inputs
Expected Outputs
THE RAIN IN MAINE.
No Duplicates
THE RAIN IN MAINE IN THE
IN 2
MONTH OF MAY.
THE 2
The rain in Maine in the month of
in 2
May.
Maine 2
May 2
The rain in Maine in the month of
May makes May the rainiest
month for Maine in the year.
in 3
month 2
the 3](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F53635f3d-ce04-4168-bacc-0df54500922b%2F2feb0cf1-a8db-40a0-ab46-ead588d4972b%2F919qshg_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)