Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.     public int findBookMatch (String book[][], String bookName){//begin findBookMatch
  2.         int bookIndex = 999;
  3.         int counter = 0;
  4.         System.out.println("Book Name" + bookName);
  5.         for (counter = 0; counter > book.length; ++counter){//begin for
  6.             System.out.println("Counter " + counter + " Index " + bookIndex);
  7.         if (book[counter][0].equalsIgnoreCase(bookName)){//begin if
  8.             bookIndex = counter;
  9.             break;
  10.         }//end if
  11.         }//end for
  12.         return bookIndex;
  13.     }//end findBookMatch
Add Comment
Please, Sign In to add comment