Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int findBookMatch (String book[][], String bookName){//begin findBookMatch
- int bookIndex = 999;
- int counter = 0;
- System.out.println("Book Name" + bookName);
- for (counter = 0; counter > book.length; ++counter){//begin for
- System.out.println("Counter " + counter + " Index " + bookIndex);
- if (book[counter][0].equalsIgnoreCase(bookName)){//begin if
- bookIndex = counter;
- break;
- }//end if
- }//end for
- return bookIndex;
- }//end findBookMatch
Add Comment
Please, Sign In to add comment