2015-11-12 18:32:54 -05:00
|
|
|
import jni
|
2021-03-15 09:57:36 -04:00
|
|
|
|
2015-11-12 18:32:54 -05:00
|
|
|
try:
|
|
|
|
ArrayList = jni.cls("java/util/ArrayList")
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 13:14:16 -04:00
|
|
|
raise SystemExit
|
2015-11-12 18:32:54 -05:00
|
|
|
|
|
|
|
l = ArrayList()
|
|
|
|
print(l)
|
|
|
|
l.add("one")
|
|
|
|
l.add("two")
|
|
|
|
|
|
|
|
print(l.toString())
|
|
|
|
print(l)
|
|
|
|
print(l[0], l[1])
|