import java.util.HashMap; import java.util.Map; public class Main { public static void main(String[] args) { HashMap books = new HashMap(); books.put(new Book("Harry Potter", "J.K. Rowling", 29.99), "SSBob3Bl"); books.put(new Book("The Catcher in the Rye", "J. D. Salinger", 18.99), "dGhhdCB5b3UncmU="); books.put(new Book("Game of Thrones", "George RR Martin", 31.99), "ZW5qb3lpbmc="); books.put(new Book("The Alchemist", "Paulo Coelho", 14.99), "dGhlIGNvdXJzZSE="); } public static void printMap(Map map) { map.entrySet().forEach((entry) -> { System.out.println(entry.getKey() + "\t" + entry.getValue()); }); } }