Exemplo n.º 1
0
 public int findRow(ATBookWrapper book) {
   int index = 0;
   ATBookWrapper current;
   for (Iterator i = books_.iterator(); i.hasNext(); ) {
     current = (ATBookWrapper) i.next();
     if (current.equals(book)) {
       return index;
     }
     index++;
   }
   return -1; // error
 }