I would have done something along the line of:


import java.util.ArrayList;

class Book
{
int bookid;
String author;
String title;