package require java

proc make_array {} {
    set a(String) [java::new String "hello"]
    set a(Object) [java::new Object]
    set a(Double) [java::new Double 4.2]
    return [array get a]
}

foreach {n v} [make_array] {
    puts "$n: [$v toString]"
}
