I have a HashMap object that contains key=>value set which are both integers.
F = java.util.HashMap;
F.put(1, 123);
F.put(3, 432);
F.put(7, 31);
I need to extract keys to the vector. I access keys with:
F.keySet.toArray
It returns Object:
ans =
java.lang.Object[]:
[1]
[3]
[7]
How to convert it to vector ?
[1 3 7]
[1 3 7]