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
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment