no, no... You must store your elements from (for example) Book class in Arraylist. create ArrayList in your main class.
Type: Posts; User: remigio
no, no... You must store your elements from (for example) Book class in Arraylist. create ArrayList in your main class.
you need to save your Books and other class to some container. in your case ArrayList will be sufficient.
For example : List<Book> myBooks = new ArrayList<Book>();