I have an object in java. Is there a way to check if an object is an instance of String, HashMap, or HashMap [] before actually passing it to these objects?
If not, then it seems contradictory that the above would work, there is a way to drop it at each object and check something about the newly made object to see if its type of object is really different
java casting types
user1022241
source share