You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
285 B
16 lines
285 B
import sys
|
|
import jni
|
|
try:
|
|
Integer = jni.cls("java/lang/Integer")
|
|
except:
|
|
print("SKIP")
|
|
sys.exit()
|
|
|
|
# Create object
|
|
i = Integer(42)
|
|
print(i)
|
|
# Call object method
|
|
print(i.hashCode())
|
|
# Pass object to another method
|
|
System = jni.cls("java/lang/System")
|
|
System.out.println(i)
|
|
|