17 lines
215 B
Python
17 lines
215 B
Python
|
import sys
|
||
|
import jni
|
||
|
try:
|
||
|
ArrayList = jni.cls("java/util/ArrayList")
|
||
|
except:
|
||
|
print("SKIP")
|
||
|
sys.exit()
|
||
|
|
||
|
l = ArrayList()
|
||
|
print(l)
|
||
|
l.add("one")
|
||
|
l.add("two")
|
||
|
|
||
|
print(l.toString())
|
||
|
print(l)
|
||
|
print(l[0], l[1])
|