from java.util import LinkedList
type(LinkedList())
The code above only gives "type 'javainstance" as output, however I wish to know the real Java instance type, which should be "LinkedList" in that case. Is this possible?
Thank you!
by the way, my version is jython 2.2.1
Howard, if you are on older Jython then try to call
LinkedList.getClass()
and
object.getClass().getName()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With