External Interfaces Reference Previous page   Next Page
javaArray

Construct Java array

Syntax

Description

javaArray('package_name.class_name',x1,...,xn) constructs an empty Java array capable of storing objects of Java class, 'class_name'. The dimensions of the array are x1 by ... by xn. You must include the package name when specifying the class.

The array that you create with javaArray is equivalent to the array that you would create with the Java code

Examples

The following example constructs and populates a 4-by-5 array of java.lang.Double objects.

See Also
javaObject, javaMethod, class, methodsview, isjava


Previous page  javaaddpath javachk Next page

© 1994-2005 The MathWorks, Inc.