public class Hoidla{ T sisu=null; public void pane(T sisu){ this.sisu=sisu; } public T kysi(){ return sisu; } public boolean kasOlemas(){ return sisu!=null; } }