summaryrefslogtreecommitdiffstatshomepage
path: root/tests/jni/list.py
blob: 7630a48e89928570e9795fb11133cf9a1b27dd8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import jni

try:
    ArrayList = jni.cls("java/util/ArrayList")
except:
    print("SKIP")
    raise SystemExit

l = ArrayList()
print(l)
l.add("one")
l.add("two")

print(l.toString())
print(l)
print(l[0], l[1])