this method is called from library.java when a library member wants to return a book this method calls the searchbook , which returns the index of this book in the library . this method then uses index to change the status of the returned book to true true representing availability of the book concode_field_sep Book[] books concode_elem_sep String shelfType concode_field_sep void addBooks concode_elem_sep boolean lendBook concode_elem_sep String getShelfType concode_elem_sep boolean getBookDetails concode_elem_sep int searchBook
boolean function ( Book arg0 , int arg1 ) { int loc0 = searchBook ( arg0 , arg1 ) ; if ( loc0 == - 1 ) { return false ; } if ( ( loc0 < books . length ) && ( loc0 > 0 ) ) { books [ loc0 ] . changeAvailability ( true ) ; return true ; } return false ; }