Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tp;
- public class Nodo {
- Paciente dato;
- Nodo enlace;
- public Nodo(Paciente paciente)
- {
- dato = paciente;
- enlace = null;
- }
- public Paciente getDato()
- {
- return dato;
- }
- public void setDato(Paciente dato)
- {
- this.dato = dato;
- }
- public Nodo getEnlace()
- {
- return enlace;
- }
- public void setEnlace(Nodo enlace)
- {
- this.enlace = enlace;
- }
- }
RAW Paste Data