Advertisement
Egor_Vakar

(Java) lab 7.2 Node

May 28th, 2022
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. package com.company;
  2.  
  3. class Node {
  4.     private int value;
  5.     private Node pNext;
  6.  
  7.     public int getValue() {
  8.         return this.value;
  9.     }
  10.  
  11.     public void setValue(final int value) {
  12.         this.value = value;
  13.     }
  14.  
  15.     public Node getpNext() {
  16.         return this.pNext;
  17.     }
  18.  
  19.     public void setpNext(final Node next) {
  20.         this.pNext = next;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement