Question
Your goal is to develop a program to analyze words entered by the user. User enter word to be stored in a collection.Your program should
Your goal is to develop a program to analyze words entered by the user. User enter word to be stored in a collection.Your program should get the word from the user. While developing this program you should use collection framework in Java. You should use atleast 2 collection type class.
Your program should display the following outputs:
Print each word entered by the user
Total Number of words entered by the user
List of distinct words and Number of distinct words entered by the user
You should print words in alphabetical order
SAMPLE OUTPUT:
Number of words entered by the user: 30
Number of distinct words entered by the user:10
List of Words:
Algorithm 3
Course 1
Program 10
Process 14
Student 2
Directions:
Construct the Java program according to standards
Grading:
10% Naming and Comments.
10% Inner class usage (atleast 1 inner class)
20% Abstract and Interface usage (atleast 1 abstract and 1 interface)
20% Collections usage (atleast 2 collection class)
40% OutputValidation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started