An Array of Examples
From Figure 5.3
int n[]; // declare an array of integers
// initialize instance variables
public void init() {
n = new int[ 10 ]; //dynamic allocation
}
Previous slide
Next slide
Back to first slide
View graphic version