File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collection program not working as expected

 
shuba gopal
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi the following program is from Deitel with minor modifications. The method removeColors is just as it is in the book. The colors BLUE,RED,GREEN are expected to be removed but they are still present after the method runs.




 
shuba gopal
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I made some changes to the program and it worked. The SOP after removeColors() had to be modified. Thanks



I panicked because its Collection. Thanks

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic