Creating a node class in Java

https://stackoverflow.com/questions/31544501/creating-a-node-class-in-java