aspose file tools*
The moose likes Beginning Java and the fly likes  Collection program not working as expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " Collection program not working as expected" Watch " Collection program not working as expected" New topic
Author

Collection program not working as expected

shuba gopal
Ranch Hand

Joined: May 12, 2011
Posts: 76
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

Joined: May 12, 2011
Posts: 76
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Collection program not working as expected