Reputation: 7602
I am getting values params[point.id] . i want to check whether params[point.id] is array or not ,how to do this
Upvotes: 3
Views: 141
Reputation: 44240
Try isArray(),
isArray()
foo.getClass().isArray();
where foo is the Object in question.
foo
Object
Upvotes: 10
Reputation: 36577
This way: object.getClass().isArray()
object.getClass().isArray()
Upvotes: 4