This doesn't make sense I'm afraid:
Code:
while((index<cart.size())if!found){
what are you trying to do here exactly?
Also, when posting code here, please use code tags so that your code will retain its formatting and thus will be readable -- after all, your goal is to get as many people to read your post and understand your code as possible, right?
To do this, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.
Another way to do this is to manually place the tags into your code by placing the tag
Code:
above your pasted code and the tag
below your pasted code like so:
Code:
[code]
// your code goes here
// notice how the top and bottom tags are different
[/code]
oh, and welcome to the forum!