Java Arena

Module 14

For-each, list methods and lists in methods

More ways to work with lists. The for-each loop, totals, true-or-false flags and joined text, searching with contains and indexOf, removing values (and the Integer trap), lists as method parameters, why two variables can share one list, and a summary of the list methods.

Steps

  1. The for-each loop
  2. Totals, flags and joined text
  3. contains and indexOf
  4. Removing values
  5. Lists as parameters
  6. One list, two names
  7. The list toolbox