From 2e1c84a212409ad088fce8f21a77002c28b8e2b6 Mon Sep 17 00:00:00 2001 From: g <@> Date: Mon, 11 Dec 2023 17:20:30 +0100 Subject: [PATCH] hilfe --- List.java | 2 +- Node.java | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/List.java b/List.java index e1488d8..24c6586 100644 --- a/List.java +++ b/List.java @@ -48,7 +48,7 @@ public class List } } public void add(int n, T val){ - + Node added } public boolean contains(T val){ Node current = first; diff --git a/Node.java b/Node.java index f4e52c2..974f2fd 100644 --- a/Node.java +++ b/Node.java @@ -7,5 +7,15 @@ */ public class Node { - + public T wert; + public Node next; + public Node(T w){ + this.wert = w; + } + public void setWert(T w){ + this.wert = w; + } + public void setNext(Node n){ + this.next = n; + } }