Hi, This might be an easy problem for someone but I can't see to get it down: What I have is a vector which contains objects that are a bean class I created. What I need to do is go thru this vector in reverse order - and remove from the bottom up the beans from the vector until I hit a bean which contains an int that is equal to another int that my program knows about. Then I have to remove that bean - but then I want to stop - I don't want to remove any beans above that in the vector. Of course, my bean has some method like getMyInt() that I will use. Does anyone follow this? I don't think it is hard - I am just stuck on it. Many Thanks!
Ko Ko Naing
posted 14 years ago
I think the following code might help you... I'm not sure whether it is the goal that u want... :roll:
Co-author of SCMAD Exam Guide, Author of JMADPlus SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0