The FOR condition generates an endless printout. I really don't know how that can happen. There is only one entry as an instance in Books. What did I do wrongly?
package LOIoefeningen;
import java.util.ArrayList;
public class Handin
{
public static void main(String[] args)
{
String title = null;
String author = null;
Possessor Bookworm = new Possessor("Bookworm", new Books(title, author));
ArrayList<Books> book = new ArrayList<>();
for (int i = 0; i < book.size(); i++)
{
book.add(new Books("Pietje Puk", "Henri Arnoldus"));
System.out.println(book.get(i));
}
}
}
}