Hey, so this is killing me, I have a class category, and the equals looks like this:
public boolean equals(String s){
return s.equals(name);
}
this is because i have an arrayList of categories, and i want to do:
int i=catList.indexOf("some name");
but it always returns -1... ive never done any .equals method for an arrayList so i have no idea if im doin it right.
help?