Array Noets - Odt
Array Noets - Odt
String[] stringsAreKool=…;
String firstLetters;
for(String letter: stringsAreKool){
firstLetters+=letter.charAt(0);}
Arrays as parameters
Be careful when passing an element of an array as a parameter.
Array of arrays
int[] grades = new int[10];
grades[] classGrades = new grades[25];
This is could be a 2D array:
int[] [] grades = new int[10][25];
The first dimension is rows, the second is columns.