circuitpython/tests/jni/list.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
211 B
Python
Raw Permalink Normal View History

import jni
2021-03-15 09:57:36 -04:00
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])