Getting Arrays - simple
Declaration
int a[];
Allocation
a = new int[10];
Assignment
a[3] = 5 ;
Reference
y = a[3];
Previous slide
Next slide
Back to first slide
View graphic version