import java.util.HashMap; class Bokhylle3 { HashMap bokhylle = new HashMap<>(); void settInn(Bok bok) { if (bokhylle.size() == 20) { System.out.println("Ikke flere plasser"); return; } bokhylle.put(bok.forfatter, bok); } void fjern(Bok bok) { // Ikke implementert } void finn(String forfatter) { // Ikke implementert } }