2015-11-13 01:32:54 +02:00
|
|
|
import jni
|
2020-03-22 21:26:08 -05:00
|
|
|
|
2015-11-13 01:32:54 +02:00
|
|
|
try:
|
|
|
|
ArrayList = jni.cls("java/util/ArrayList")
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 20:14:16 +03:00
|
|
|
raise SystemExit
|
2015-11-13 01:32:54 +02:00
|
|
|
|
|
|
|
l = ArrayList()
|
|
|
|
print(l)
|
|
|
|
l.add("one")
|
|
|
|
l.add("two")
|
|
|
|
|
|
|
|
print(l.toString())
|
|
|
|
print(l)
|
|
|
|
print(l[0], l[1])
|