Hello,
I'm new to java and I have this problem:
Now the problem is probably clear to you; I need to retrieve the idx having that class. Any helps?Qt Code:
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 workTo copy to clipboard, switch view to plain text mode
thanks,
Bookmarks