Question: 2.2 Bag Application Write a Main program that uses 3 loops to process a Bag: In the first loop 5 strings are read from the


2.2 Bag Application Write a Main program that uses 3 loops to process a Bag: In the first loop 5 strings are read from the user. These strings are added to Bag myBag; In the second loop, the last item entered from the first loop is repeatedly added until myBag is completely full. In the third loop, all occurences of "soup" are removed from myBag. Finally, the contents of myBag are printed to the console. The output ends with a newline. Ex: If the input is: kale beans cheese soup tuna the final output is: myBag = [kale, beans, cheese, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna, tuna] You may use the following UML diagram for the Bag class for reference Bag +getCurrentSize(): integer +isFull(: boolean +isEmptyO: boolean +add(newEntry: T): boolean +remove(): T +remove (anEntry: T): boolean +clear(): void +get FrequencyofanEntry: T): integer +contains (anEntry: T): boolean +toArray(): T[] +toString(): String LAB ACTIVITY 2.2.1: Bag Application 4/10 Downloadable files Bag.java Main.java package.bluej Download Current file: Main.java Load default template... 1 import java.util.Scanner; 2 3 public class Main 4 { 5 public static void main(String [] args) 6 { 7 Bag myBag = new Bag(); 8 Scanner keyboard = new Scanner(System.in); 9 String item = ; 10 11 System.out.println("Enter 5 items to put in my bag on one line, separated by spaces: "); 12 13 // finish 14 15 16 17 18