arrays Flashcards

1
Q

array length

A

number of elements in array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

array index

A

location of element. ALWAYS starts at 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

array declaration

A

[] . declaration establishes scope, but remember to alocate memory before use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

array allocation

A

= new [length/size]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

new keyword

A

ALLOCATE memory for an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

index range of array

A

0 to (Object.length-1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

easy way to initalize array values

A

array = {num1, num2…}. must be done with array declaration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

for-each loop

A

for(double d:aDarray)

variables must match type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

two dimensional array

A

single dimensional array in which each element is its own array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly