T
Timitry
Gast
Hi @ all!
Hab bis jetzt nur mit Java 1.4.2 programmiert und bin auf Java 5.0 umgestiegen!
Will eine Hashtable erzeugen, komm aber nicht mit der Syntax von Java 5.0 zurecht.
V ist der Klassentyp, den die Hashtable aufnehmen kann oder? So das ich nicht casten muss.
Was ist K?
Könnte mir das jemand erklären!
Hab bis jetzt nur mit Java 1.4.2 programmiert und bin auf Java 5.0 umgestiegen!
Will eine Hashtable erzeugen, komm aber nicht mit der Syntax von Java 5.0 zurecht.
Hashtable
public Hashtable(Map<? extends K,? extends V> t)
Constructs a new hashtable with the same mappings as the given Map. The hashtable is created with an initial capacity sufficient to hold the mappings in the given Map and a default load factor, which is 0.75.
Parameters:
t - the map whose mappings are to be placed in this map.
Throws:
NullPointerException - if the specified map is null.
Since:
1.2
V ist der Klassentyp, den die Hashtable aufnehmen kann oder? So das ich nicht casten muss.
Was ist K?
Könnte mir das jemand erklären!