Hi all
I have a Map which is dynamically generated and can contain strings, and array of strings as values.
keys are strings.
if i do map.get('key') where 'key' has a
string value -it returns s tring value which is good.
but if 'key' has an array stored inside map as value , it returns first element of array.
I can use getArray() but in that case i should know if 'key' is an array or not and that is not possible.
so i want to check if map contains an array .
I want to do something like this-
map.get("key").getClass().isArray()
Ofcouse I tried this and it wont work because getClass() checks first element of Array.