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