From c8f45a7e009e1ac05cd1b26fdc5517636b521c6d Mon Sep 17 00:00:00 2001 From: Lukas <142339568+lukasb1b@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:32:55 +0200 Subject: [PATCH 1/2] Create Element.java --- src/main/java/net/jneto/dataStructures/Element.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/java/net/jneto/dataStructures/Element.java diff --git a/src/main/java/net/jneto/dataStructures/Element.java b/src/main/java/net/jneto/dataStructures/Element.java new file mode 100644 index 0000000..6d55221 --- /dev/null +++ b/src/main/java/net/jneto/dataStructures/Element.java @@ -0,0 +1,13 @@ +/* +* Element class that ist the basis for a lot of other classes for example LinkedLists +*/ + +public class Element() { + private Object value; + private Element next; + + public Element(Object value, Element next) { + this.value = value; + this.next = next; + } +} From b8733147039dbc95eaed04b1a44647b7bc88974f Mon Sep 17 00:00:00 2001 From: Lukas <142339568+lukasb1b@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:34:49 +0200 Subject: [PATCH 2/2] Update Element.java --- src/main/java/net/jneto/dataStructures/Element.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/jneto/dataStructures/Element.java b/src/main/java/net/jneto/dataStructures/Element.java index 6d55221..16d9a62 100644 --- a/src/main/java/net/jneto/dataStructures/Element.java +++ b/src/main/java/net/jneto/dataStructures/Element.java @@ -1,3 +1,4 @@ +package net.jneto.dataStructures; /* * Element class that ist the basis for a lot of other classes for example LinkedLists */