/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework7;
import java.util.*;

/**
 *
 * @author kvaradar
 */
public class MyMapClass<K,V> implements MyMap<K,V>  {
    LinkedList<MyEntryClass<K,V>> lst;
    
    public MyMapClass() {
        lst = new LinkedList<MyEntryClass<K,V>>();
    }
    
    public int size() {
        return lst.size();
    }
    
    public V get(K k) {
        for (MyEntryClass<K,V> e: lst)
            if (k.equals( e.getKey())) 
                return e.getValue();
        return null;
    }
    

}
