00:01
Hello students, here is the java program called as the word manager that manages the collection of this string.
00:07
So, wait, first of all we will import the required libraries.
00:10
The code starts by importing the java .util .scanner which is used to take the user input and the constants as well as the class are declared.
00:20
So it declares a class named as the word manager and defines the constants capacity with a value of 20 representing the maximum number of the words that can be stored.
00:31
And then it adds the method whereas the add method is declared with the three parameters word, count as well as the words.
00:44
So the words and an array of the string where the words will be added in a count, an integer representing the current count of the word in an array and the only word, the word is the new word to be added.
01:00
So this method is the placeholder with the comment as todo.
01:05
It is with a todo over here indicating that implementing is not provided in the code.
01:11
So in a print list, in a print list method, so whereas the method is declared with the two parameters words and the count.
01:20
So words as the array of the string containing the words and the count as an integer representing the current count of the words in the array.
01:30
The average, as you can see the average length method, this method is declared with the two parameters as the same words and the count.
01:40
And in this method another placeholder with the comment indicating that its implement is not provided over in the code.
01:46
In a main method, so in a main method, in a main method, the main method is the entry point of the program.
01:58
It creates the scanner object called named as an sc with an sc.
02:03
So to read the user input and initializes an array of the string named as words with the capacity defined by the capacity constant.
02:12
Initializes a string, an integer variable count to keep the track of the number of the words in an array.
02:18
Then initializes the integer choice to store the user menu choice selection...