Arrays
Arrays
Arrays
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Arrays</strong>: Graphical Notation<br />
Declaration, creation and default value initialization.<br />
int[] a = new int[8];<br />
a<br />
array of int<br />
8<br />
length<br />
a[]<br />
a[]<br />
[3]<br />
[4]<br />
[5]<br />
[6]<br />
[7]<br />
0<br />
0<br />
0<br />
0<br />
0<br />
0<br />
0<br />
0<br />
[0]<br />
[1]<br />
[2]<br />
[3]<br />
[4]<br />
[5]<br />
[6]<br />
[7]<br />
a[3] is the 4rth element in the array.<br />
6-8/20