toJavaArray
Create a Java array from a list of its elements.
y=toJavaArray(clazz, a, b, c, ...)
Inputs
clazz The class of the array to be created.
{a, b, c, ...} List of objects, all of the same type.
Outputs
y A Java array of the specified inputs.


Description
toJavaArray(clazz, b, c, ...) returns a one-dimensional array of the objects a, b, c, ... which must be convertible to instances of the Java class clazz .
Example
>>a=toJavaArray(Integer,2,4,5)
>>a.getClass()
class [Ljava.lang.Integer;
>>b=[2 4 5] // The usual Mathnium array
>>// The class of the Java object to which the Mathnium array is
>>// implicitly converted.
>>b.getClass() 
class [[D;