What is the fastest and best way to return a large data array from Python to Java using Chaquopy? The Python dataset is a list of integers (e.g. list = [1, 3, 5, 7...]) with a size of +100,000.
I found that I could return the list to Java as following:
short[] data2 = py.getModule("main").callAttr("rula_timeline").toJava(short[].class);
However, in my Java I need the dataset as an ArrayList. I am new to Java so I don't know how to convert it.