fefetl08

Node

Mar 28th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. public class Node {
  2.     private Integer informacao;
  3.     private Node proximo;
  4.  
  5.     public Node(Integer info) {
  6.         this.informacao = info;
  7.         this.proximo = null;
  8.     }
  9.  
  10.     public void setProximo(Node proximo) {
  11.         this.proximo = proximo;
  12.     }
  13.  
  14.     public Integer getInformacao() {
  15.         return informacao;
  16.     }
  17.  
  18.     public Node getProximo() {
  19.         return proximo;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment