This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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

 
 
subject: Collection program not working as expected
 
Similar Threads
Enum Type inhteritance
Struts 2 checkboxlist error - list key could not be resolved
question on enum
problem with updating Panel!
AWT Event look for help