2015-11-12 23:32:54 +00:00
|
|
|
import jni
|
|
|
|
try:
|
|
|
|
ArrayList = jni.cls("java/util/ArrayList")
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 18:14:16 +01:00
|
|
|
raise SystemExit
|
2015-11-12 23:32:54 +00:00
|
|
|
|
|
|
|
l = ArrayList()
|
|
|
|
print(l)
|
|
|
|
l.add("one")
|
|
|
|
l.add("two")
|
|
|
|
|
|
|
|
print(l.toString())
|
|
|
|
print(l)
|
|
|
|
print(l[0], l[1])
|