Trying to find why this code wont compile. it returns error code "cannot find symbol- variable book"
public void ListBooksIterator() { Iterator<String> it = book.iterator(); while(it.hasNext()) { System.out.println(it.next()); } }
Trying to print all the Books in the book Class.cheers