ref: c38e733d9de9f416af3f1e629bc351c4723e2425
dir: /Bookproj/Books.java/
package Bookproj; import java.util.HashMap; import java.util.TreeMap; public class Books { HashMap<BookAttr, String> Book = new HashMap<BookAttr, String>(); HashMap<String, HashMap> Booklist = new HashMap<String, HashMap>(); HashMap<String, TreeMap> Mkbl(HashMap<String, Book> bl) { HashMap<String, TreeMap> list = new HashMap<String, TreeMap>(); for (Book i : bl.values()) { list.put(i.getISBN(), i.toMap()); } return list; } }