Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Nodo<ELEMENT> {
- private ELEMENT valor;
- private Nodo<ELEMENT> next;
- public Nodo(ELEMENT valor) {
- this.valor=valor;
- this.next=null;
- }
- public ELEMENT getValor() {
- return valor;
- }
- public void setValor(ELEMENT valor) {
- this.valor = valor;
- }
- public Nodo<ELEMENT> getNext() {
- return next;
- }
- public void setNext(Nodo<ELEMENT> next) {
- this.next = next;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment