/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package homework7; import java.util.*; /** * * @author kvaradar */ public class MyMapClass implements MyMap { LinkedList> lst; public MyMapClass() { lst = new LinkedList>(); } public int size() { return lst.size(); } public V get(K k) { for (MyEntryClass e: lst) if (k.equals( e.getKey())) return e.getValue(); return null; } }