Menu

(Solved) : Part 1 Checkpoint 1 Create New Project Main Class Create Arraylist Type String Called Name Q33095937 . . .

Meet the requirements and write the codes with commentsplease! Thanks!
Part 1 Checkpoint 1. Create a new project. In the main class create an ArrayList of type String called names. It should be a static Class variable (class scope: can be used anywhere in the class) In the main method, add at least five different names (Strings) to the ArrayList. Create a new static method called removeString 2. 3. a. It should take a String as an argument, and return a boolean. b. It should search the names ArrayList to see if it contains the String argument c. If it does, it should remove the String from the ArrayList and return true d. If the ArrayList does not contain the String, it should do nothing and return false 4. 5. Call the removeString method at least twice from main() and print the result to the console Finally, loop through the names ArrayList and print it to the console When you are happy with this: Checkpoint! Note: if all the TAs are busy, get on with part 2 and checkpoint laterPart 1 Checkpoint 1. Create a new project. In the main class create an ArrayList of type String called names. It should be a static Class variable (class scope: can be used anywhere in the class) In the main method, add at least five different names (Strings) to the ArrayList. Create a new static method called removeString 2. 3. a. It should take a String as an argument, and return a boolean. b. It should search the names ArrayList to see if it contains the String argument c. If it does, it should remove the String from the ArrayList and return true d. If the ArrayList does not contain the String, it should do nothing and return false 4. 5. Call the removeString method at least twice from main() and print the result to the console Finally, loop through the names ArrayList and print it to the console When you are happy with this: Checkpoint! Note: if all the TAs are busy, get on with part 2 and checkpoint later Show transcribed image text

Expert Answer


Answer to Part 1 Checkpoint 1 Create New Project Main Class Create Arraylist Type String Called Name Q33095937 . . .

OR