Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The compiler prevents insertion of an Object to the parameterized list because addToList() cannot be called with an argument whose type produces a mismatch. This code has consequently been changed to add a String to the list instead of an int.

...

Image Modified Image Modified Image Modified