We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7e1b8 commit 772f0b4Copy full SHA for 772f0b4
tests/jni/list.py
@@ -0,0 +1,16 @@
1
+import sys
2
+import jni
3
+try:
4
+ ArrayList = jni.cls("java/util/ArrayList")
5
+except:
6
+ print("SKIP")
7
+ sys.exit()
8
+
9
+l = ArrayList()
10
+print(l)
11
+l.add("one")
12
+l.add("two")
13
14
+print(l.toString())
15
16
+print(l[0], l[1])
tests/jni/list.py.exp
@@ -0,0 +1,4 @@
+[]
+[one, two]
+one two
0 commit comments