start
This commit is contained in:
parent
a2610b7f52
commit
9e98bd929d
|
@ -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>
|
|
@ -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>
|
|
@ -0,0 +1,5 @@
|
|||
package main;
|
||||
|
||||
public class Article {
|
||||
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
package main;
|
||||
|
||||
public class Launcher {
|
||||
|
||||
public static void main(String[] args) {
|
||||
Hashtable<Integer, Article> table = new Hashtable<>(100);
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue