From 9e98bd929d264394e0d6dc4ae8c50a5a0791a8af Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Oct 2020 11:11:13 +0100 Subject: [PATCH] start --- Hashtabellen/.classpath | 6 ++++++ Hashtabellen/.project | 17 ++++++++++++++++ Hashtabellen/src/main/Article.java | 5 +++++ Hashtabellen/src/main/Hashtable.java | 29 ++++++++++++++++++++++++++++ Hashtabellen/src/main/Launcher.java | 9 +++++++++ 5 files changed, 66 insertions(+) create mode 100644 Hashtabellen/.classpath create mode 100644 Hashtabellen/.project create mode 100644 Hashtabellen/src/main/Article.java create mode 100644 Hashtabellen/src/main/Hashtable.java create mode 100644 Hashtabellen/src/main/Launcher.java diff --git a/Hashtabellen/.classpath b/Hashtabellen/.classpath new file mode 100644 index 0000000..51a8bba --- /dev/null +++ b/Hashtabellen/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/Hashtabellen/.project b/Hashtabellen/.project new file mode 100644 index 0000000..9a353bd --- /dev/null +++ b/Hashtabellen/.project @@ -0,0 +1,17 @@ + + + Hashtabellen + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/Hashtabellen/src/main/Article.java b/Hashtabellen/src/main/Article.java new file mode 100644 index 0000000..82b4e3e --- /dev/null +++ b/Hashtabellen/src/main/Article.java @@ -0,0 +1,5 @@ +package main; + +public class Article { + +} diff --git a/Hashtabellen/src/main/Hashtable.java b/Hashtabellen/src/main/Hashtable.java new file mode 100644 index 0000000..1858a62 --- /dev/null +++ b/Hashtabellen/src/main/Hashtable.java @@ -0,0 +1,29 @@ +package main; + +public class Hashtable { + + private ContentType[] content; + + public Hashtable(int size) { + content = (ContentType[]) new Object[size]; + } + + public boolean hasKey(KeyType key) { + //TODO + return false; + } + + public void put(KeyType key, ContentType content) { + //TODO + } + + public ContentType get(KeyType key) { + //TODO + return null; + } + + public void delete(KeyType key) { + //TODO + } + +} diff --git a/Hashtabellen/src/main/Launcher.java b/Hashtabellen/src/main/Launcher.java new file mode 100644 index 0000000..89dee5d --- /dev/null +++ b/Hashtabellen/src/main/Launcher.java @@ -0,0 +1,9 @@ +package main; + +public class Launcher { + + public static void main(String[] args) { + Hashtable table = new Hashtable<>(100); + + } +}