How to test if a variable obj
is instance of a list regardless of the type that list is holding
I have tried
obj instanceof List
obj instanceof List<>
But I'm getting a compile error
How to test if a variable obj
is instance of a list regardless of the type that list is holding
I have tried
obj instanceof List
obj instanceof List<>
But I'm getting a compile error
Best Answer
Solved that
To test if a variable is a list regardless of the type of its elements