Advertisement
Guest User

Node.java

a guest
Apr 7th, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.awt.*;
  2.  
  3. public class Node {
  4.     private Point state;
  5.     private Node parent;
  6.  
  7.     public Node(Point state, Node parent) {
  8.         this.state = state;
  9.         this.parent = parent;
  10.     }
  11.  
  12.     public Point getState() {
  13.         return state;
  14.     }
  15.  
  16.     public Node getParent() {
  17.         return parent;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement