public String getTitleFromIndex(ArrayList<Book> b, int i) {
        for (Book c : b) { 
            if (i == c.getbookIndex()) {
                output = c.getbookTitle();
                break;
            } // end if
            else
                output = "Title not found";
        } // end for
        return output;
    } // end method