You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
16 lines
280 B
Python
16 lines
280 B
Python
import jni
|
|
try:
|
|
Integer = jni.cls("java/lang/Integer")
|
|
except:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# 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)
|