public void PushIn(int information) //положить узелок в стек { topofstack = new MyNode(topofstack, information); }
public MyNode(MyNode nextelement, int information) // конструктор для узла { this.nextelement = nextelement; this.information = information; }