Java/Section04-Lists/Lists-Linked-Lists-Challenge-#2-Solution-Source-Code/src/academy/learnprogramming/challenge2/IntegerNode.java
package academy.learnprogramming.challenge2;

public class IntegerNode {

    private Integer value;
    private IntegerNode next;

    public IntegerNode(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public IntegerNode getNext() {
        return next;
    }

    public void setNext(IntegerNode next) {
        this.next = next;
    }

    public String toString() {
        return value.toString();
    }

}
