I think you probably do not want to have String catagory in the constructor.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Dec 19, 2004
Thanks for reply!
Category is a String holding the book-category in which the librarian is considered an expert. But librarians are often experts in more than one book-category. So how to implement this. I guess, it's something to do with an array list.
Marilyn de Queiroz
Joined: Jul 22, 2000
Rather than a member variable of type String named catagory, I suggest you use a private member variable of type ArrayList named catagory. You can store the Strings in the ArrayList.