Primitive Arrays
Primitive arrays with a fixed length can also be used when working with a rule language grammar .
Here are examples of array declaration, initialization, and array creation expressions:
- Array declaration and initialization:
int i; // int int[] ii = {1,2,i}; // array of int
- Array creation with initialization expression:
ii = int[] {1,2,3};
- Array creation without initialization expression:
int[] arr = int[5] {}; arr = int[5]{};
- Getting the length of the array:
int arrLength = arr@length;
Copyright © TIBCO Software Inc. All rights reserved.