Skip to content
Snippets Groups Projects
Commit 772f0b41 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/jni: Add test for working with container of List interface.

parent 3c7e1b80
Branches
No related tags found
No related merge requests found
import sys
import jni
try:
ArrayList = jni.cls("java/util/ArrayList")
except:
print("SKIP")
sys.exit()
l = ArrayList()
print(l)
l.add("one")
l.add("two")
print(l.toString())
print(l)
print(l[0], l[1])
[]
[one, two]
[one, two]
one two
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment