www.delorie.com/gnu/docs/gcc/gcj_36.html   search  
 
Buy the book!


Guide to GNU gcj

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.8.1 Creating arrays

For each primitive type there is a function which can be used to create a new array of that type. The name of the function is of the form:

 
JvNewTypeArray

For example:

 
JvNewBooleanArray

can be used to create an array of Java primitive boolean types.

The following function definition is the template for all such functions:

Function: jbooleanArray JvNewBooleanArray (jint length)
Create's an array length indices long.

Function: jsize JvGetArrayLength (jarray array)
Returns the length of the array.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003