Your parameters for searchVector are supposed to be v and c.
You have cu and c.
int i = v.indexOf(c);
if c isn't in there, what value will i be?
Also, maybe Scanner should be static, I'm...
Type: Posts; User: javapenguin
Your parameters for searchVector are supposed to be v and c.
You have cu and c.
int i = v.indexOf(c);
if c isn't in there, what value will i be?
Also, maybe Scanner should be static, I'm...