|
SOLUTIONS
|
JLINK SYMBOL
InstanceOf
InstanceOf[javaobject, javaclass]
gives True if javaobject is an instance of the class or interface javaclass, or a subclass. Otherwise, it returns False.
InstanceOf[javaobject, "classname"]
gives True if javaobject is an instance of the named class or interface, or a subclass.
DetailsDetails
- To use InstanceOf, you first need to load J/Link using Needs["JLink`"].
- InstanceOf mimics the behavior of the Java language's instanceof operator.
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
