object stack memory id apeears instead of object itself
Hi!
So I'm working on this project for school where you have to make a program that functions as a library.
I have two Jlists liked through defaultlistmodel and some buttons.
When I press the "borrow" button a copy of the selected object in jlist1 is supposed to appear in jlist2 but instead I get this:
[Ljava.lang.Object;@5e4be2cc]
I know this is the numerical representation of the object in the stack memory but how do I make the object appear like it should
([Animal Farm, George Orwell, (1946)ex:3])
Is there some method I forgot to invoke?