hi all, wanted to know if it could be possible for you lot to give me some information on how to search through a vector, would be of great help. regards
talib
just use a normal search algorithm but make sure that when you reference a vector element you use elementAt(int index).
You will also need to use a comparison that will be effective for the type of object you are looking at in the vector. Don't forget there is a big difference between using various comparisons e.g. == and equals() etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.