I want to create a ArrayList of String's ArrayList in Jython.
In Java should be something like:
ArrayList<ArrayList<String>> arr = new ArrayList<ArrayList<String>>()
I dont know how to do that in Jython. The problem is that in Jython even the creation of a simple ArrayList is a bit different. As long as I know, you dont even to define the type:
import java.util.ArrayList as ArrayList
arr = ArrayList()
So how can I create a ArrayList of ArraList in Jython?
I dont even know if it's possible, because as you can read on the documentation it seems to have a bit of limitation.
Java collection objects could act as a Jython object, but Jython objects could not act as Java objects. For instance, it is possible to use a Java ArrayList in Jython and use methods such as add(), remove(), and get()
Thanks in advance.