Hello,
I'm new to java and I have this problem:
public class Name {
String name = null;
}
Vector<Name> gn = new Vector<Name>();
gn.add (new Name("mike") ); // for 10 times
String name = "Sam";
int idx = gn.indexOf( new Name( name )); //this not work
public class Name {
String name = null;
}
Vector<Name> gn = new Vector<Name>();
gn.add (new Name("mike") ); // for 10 times
String name = "Sam";
int idx = gn.indexOf( new Name( name )); //this not work
To copy to clipboard, switch view to plain text mode
Now the problem is probably clear to you; I need to retrieve the idx having that class. Any helps?
thanks,
Bookmarks