There is an internal function to do this, but it not accessible in Python
fixed by you sir!
It's been about 6 years since this question, so lots might have changed:
I was looking for such functionality (i.e. converting python list to Java array), but didn't find anything in the documentation.
Found the functionality; would be super-helpful to add such examples to the documentation.
>>> jArray = autoclass("java.lang.reflect.Array")
>>> a = jArray.newInstance(jString, 10)
>>> a
[None, None, None, None, None, None, None, None, None, None]
>>> a[0] = jString("nitish")
>>> a
[<java.lang.String at 0x103d619b0 jclass=java/lang/String jself=<LocalRef obj=0x7fc665f4a3f8 at 0x103abf190>>, None, None, None, None, None, None, None, None, None]
This wasn't trivial at all.
Most helpful comment
Found the functionality; would be super-helpful to add such examples to the documentation.
This wasn't trivial at all.