= #JxnPortable\docs\programmer_examples\UsingJavaAPI_4_Hashtable.jxn

ht = @Hashtable()
 = {} (java.util.Hashtable)
ht.put( "one", @Double(1.) )
 = null
ht.put( "two", @Double(2.) )
 = null
ht.put( "three", @Double(3.) )
 = null
ht.put( "four", @Double(4.) )
 = null
ht
 = {two=2.0, one=1.0, three=3.0, four=4.0} (java.util.Hashtable)
ht.size()
 = 4 (int)
ht["two"]  ! <- abbreviation of ht.get("two")
 = 2.0 (java.lang.Double)

ht2 = @Hashtable()
 = {} (java.util.Hashtable)
key = { "zero", "one", "two", "three", "four" }
 = { zero, one, two, three, four } (java.lang.String[5])
val = { "null", "eins", "zwei", "drei", "vier" }
 = { null, eins, zwei, drei, vier } (java.lang.String[5])
! since put takes parameters of type java.lang.Object JxnUnroll is used to force automatic array loop processing
ht2.put( @JxnUnroll key, @JxnUnroll val )
 = { null, null, null, null, null } (java.lang.Object[5])
ht2
 = {two=zwei, one=eins, three=drei, zero=null, four=vier} (java.util.Hashtable)
ht2.size()
 = 5 (int)
ht2["three"]
 = drei (java.lang.String)