-class IntNode {
- private int data;
- private IntNode next;
-
- IntNode(int value) {
- setData(value);
- setNext(null);
- }
-
- IntNode(int value, IntNode nextNode) {
- setData(value);
- setNext(nextNode);
- }
-
- public int getData() {
- return data;
- }
-
- public void setData(int value) {
- data = value;
- }
-
- public IntNode getNext() {
- return next;
- }
-
- public void setNext(IntNode nextNode) {
- next = nextNode;
- }
-
-}
-
-class Liste {
- private IntNode headNode;