:- use_module(library(jpl)).
Array is a JPL reference to a new Java array of org.jpl7.Term, whose elements represent the respective members of the list.
org.jpl7.Term