% -*- texinfo -*- % @deftypefn {Function file} {@var{a} =} javaArray (@var{class},@var{[M,N,...]}) % @deftypefnx {Function file} {@var{a} =} javaArray (@var{class},@var{M},@var{N},...) % % Creates a Java array of size [@var{M},@var{N},...] with elements of % class @var{class}. @var{class} can be a Java object representing a class % or a string containing the fully qualified class name. % % The generated array is uninitialized, all elements are set to null % if @var{class} is a reference type, or to a default value (usually 0) % if @var{class} is a primitive type. % % @example % a = javaArray ('java.lang.String', 2, 2); % a(1,1) = 'Hello'; % @end example % % @end deftypefn