Create a class bag (multiset) that uses an expandable array to store the bag items. The item type must be a Java String type; that is, the bag will store strings of characters. The class should have the methods listed below. Create a main class to test your bag class. This main class should fill a bag with the keywords of the Java language.
- Bag(): default constructor
- boolean isEmpty(): determines whether the bag is empty
- void print(): prints the bag elements
- int getLength(): returns the number of items in the bag
- void clear(): removes all of the items from the bag
- void add(String item): adds an item to the bag
- void removeOne(String item): removes item from the bag; only one occurrence of item should be removed.
- void removeAll(String item): removes item from the bag; all occurrences of item should be removed.
- int count(String item): counts the number of occurrences of item in the bag.