Hello,
I'm new to java and I have this problem:
Qt Code:
  1. public class Name {
  2. String name = null;
  3. }
  4.  
  5. Vector<Name> gn = new Vector<Name>();
  6. gn.add (new Name("mike") ); // for 10 times
  7. String name = "Sam";
  8. 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,