红框内应该是用到Book的构造器new一个Book对象,然后放到Map中:
总共有六处代码,按顺序分别是:
this.ISBN = ISBN;
this.name = name;
Map
Book book = new Book(isbn,name);
bookMap.put(book);
bookMap.size();
所以红框内是
Book book = new Book(isbn,name);
bookMap.put(book);//前提是你在定义HashMap时声明的变量名是bookMap
先在定义泛型那里定义,一个map,然后你圈中那里写map.pushback(name,,isbn);