Do you mean something like a HashMap where you could have the member as the key and the book as the value or vice versa like this?

HashMap<Books,Membership> loans = new...