Initializing arrays w/ drudge method:
int [ ] temps = new int[3];
temps[0] = 78
temps[1] = 89
temps[2] = 34
Initializing arrays with for loop
int [ ] temps = new int[3];
for(int ctr = 0; ctr less than 3; ctr++)
{
temps[ctr] = Console read int ("enter #");
}Initializing array in 1 line
int [ ] temp = {78, 89, 34};
String array w for loop
String [ ] list = new String[3];
for(int ctr = 0; ctr less than 8; ctr++)
{
list[ctr] = Console read int ("enter #");
}Finding length of an array named “value”
value.length