I expect the subject is clear, suggestions are appreciated.
I have a hhm=new HashMap<String,HashMap<String,Test>>()
.
I have a function(HashMap<String,Test>... array)
.
I need to call function(hhm.values().toArray(new HashMap<String,Test>[0]))
but I cant find a way to do that, this code wont compile.
Casting will cause exception in run-time: function((HashMap<String,Test>[])hhm.values().toArray())
what now?