public String getInfoFromTitle(ArrayList<Book> b, ArrayList<Author> a, String t) {
        
        String n = null; // book title
        String m = null; // author name
        double p = 0;    // price
        
        for (Book c : b) { 
                if (t.equalsIgnoreCase(c.getbookTitle())) {
                    n = c.getbookTitle();
                    p = c.getPrice();
                    
                    for (Author e : a) {
                        if (c.getAuthorIndex() == e.getIndex())
                        m = e.getAuthorName();
                    } // end nested for
                    output = "    Title: " + n +
                             " \nAuthor: " + m +
                             "\n  Price: $" + p;
                    break;
                } // end if
                else
                    output = "Book not found";
            } // end for
        return output;
    } // end method