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.

usagi (2) [Avatar] Offline
#1
Hi,

Love the book. In Chapter 3 am having a hard time understanding how objects can be added to a List as your Reviews are fetched from Google. Building my own List based on an object populated with three string Arays equivalent to the Review object leads to errors everytime I try to add them to the List.

Would anyone be able to point me in the direction of how I could do this. I Could simply do a StringAdapter but it would not replicate the way you've done it in this chapter.

thanks,

Message was edited by:
usagi
usagi (2) [Avatar] Offline
#2
Re: Adding Reviews in Chapter 3
Duh, sorry stupid question. Realized I had forgotten to instantiate the List as an ArrayList. Since List is only and Interface I needed to cast it as a concrete class.

Thanks