The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Sabuncu (34) [Avatar] Offline
#1
In Chapter 1, page 5, the first bullet item in the lower half of the page says:

We could’ve accidentally added a string to the list created in GetSampleProducts and the compiler wouldn’t have batted an eyelid.

I don't think the above sentence does a good job of underscoring how the ArrayList can be misused, since the Product definition also contains a string as one of its properties. Maybe something like the following would have been better:

We could’ve accidentally added a simple string instead of a Product instance to the list created in GetSampleProducts and the compiler wouldn’t have batted an eyelid.

Thanks -

Todd