IT 114: Introduction to Java
Answers to Class 25 Ungraded Quiz

  1. What is the ArrayList method that removes all entries?
    clear
  2. What is the ArrayList method that deletes an entry?
    remove
  3. What is the ArrayList method that changes an entry?
    set
  4. What ArrayList method would you use to learn if the list has a certain value?
    contains
  5. What is the statement used to completely jump out of a loop?
    break
  6. What is the statement used to stop one pass through the loop code without stopping the loop?
    continue
  7. What statement can use use in place of an if/else if statement when the value of an expression determines which statements are executed?
    switch