J
Jerome Eteve
I all.
I have a
Map<String,Float> foo = ....
And the following line of code a couple of instructions after:
String[] fields = (String[])(foo.keySet().toArray()) ;
But at the runtime, I have a class cast exception telling me that it's
not possible to cast an Object down to a String.
How can I do to have an array of strings from the foo map key set ?
Thanks for your help.
I have a
Map<String,Float> foo = ....
And the following line of code a couple of instructions after:
String[] fields = (String[])(foo.keySet().toArray()) ;
But at the runtime, I have a class cast exception telling me that it's
not possible to cast an Object down to a String.
How can I do to have an array of strings from the foo map key set ?
Thanks for your help.