This commit is contained in:
Tim 2020-10-29 11:11:13 +01:00
parent a2610b7f52
commit 9e98bd929d
5 changed files with 66 additions and 0 deletions

6
Hashtabellen/.classpath Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>

17
Hashtabellen/.project Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Hashtabellen</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,5 @@
package main;
public class Article {
}

View File

@ -0,0 +1,29 @@
package main;
public class Hashtable<KeyType, ContentType> {
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
}
}

View File

@ -0,0 +1,9 @@
package main;
public class Launcher {
public static void main(String[] args) {
Hashtable<Integer, Article> table = new Hashtable<>(100);
}
}