//clasa Element - folosita pentru tda package Liste; public class Element { private Object info; protected Element urm; public Element(Object info, Element urm) { this.info = info; this.urm = urm; } public Object info() { return info; } public Element urmator() { return urm; } public void initUrm(Element ref) { urm = ref; } public boolean equals(Object x) { return info == x; } public String toString() { return info.toString(); } }