A programming construct that lets you group values of the same type under a single name.
What is an array?
An array object that stores references to other array objects
What is a 2D array?
This is what happens when you try to access a value at an index that doesn't exist for an array.
What is ERROR?
Key words used when creating objects.
What is new?
Game system Lopez brough to DLL.
What is the Wii?
Name for the number that is associated with a specific value within an array.
What is an index?
When creating a 2D array object, this is what the second number in the square brackets is for.
What is the number of values in each array?
Default values for values stored by int array objects if not explicitly specified
What is 0?
Key word to indicate that a field should be shared across objects. Also indicates that a method can be called without creating an object beforehand.
What is static?
Smash character Lopez likes most
Who is Ness?
The number you type inside square brackets when you create an array object in your program.
What is array size?
Aside from when creating a 2D array object, this is what the first number in square brackets attached to a 2D array reference means.
What is specifying from which array (or row) you are reading/writing a value?
The result of:
Pokemon[] p1 = {new Pokemon("mew", 200), new Pokemon("pichu", 20)};
Pokemon[] p2 = {new Pokemon("mew", 200), new Pokemon("pichu", 20)};
System.out.println(p1 == p2);
What is false?
Keyword that lets you stop a loop prematurely.
What is break?
Person won the Augusta Masters this year.
Who is Rory Mclroy?
Programming constructs that let you perform a set of instructions for every value in an array with n values.
What is enhanced for loop, for loop, while loop, and recursion?
Typical way to do something for each value in a 2D array.
What is nested loop?
The result of:
int[] nums = {1, 2, 3};
for(int i = 0; i < 10; i--){
System.out.println(nums[i] + 2);
}
What is error?
This keyword is used to refer to the current object inside a class.
What is this?
Lopez nicname for head of upper
Who is Schebby?
The result of this:
Pokemon[] myTeam = {new Pokemon("mew", 200), new Pokemon("gible", 30)};int[] nums = {5, 5, 5};
for(int num: nums){
num = 10;
}
for(Pokemon mon: myTeam){
mon.editHp(-10);
}
System.out.println(nums[0]);
System.out.println(myTeam[0].getHp());
What is:
5
190
?
The result (what nums ends up storing) of this:
int[][] nums = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for(int i = 2; i >= 0; i--){
for(int j = 2; j >= 0; j--){
if(!(i == 0 && j == 0)){
if(j != 0){
nums[i][j] += nums[i][j - 1];
}
else{
nums[i][j] += nums[i - 1][2];
}
}
}
}
The result is:
[[1, 3, 5],
[7, 9, 11],
[13, 15, 17]]
Default values for values stored by non primitive type array objects if not explicitly specified
What is null?
Keyword that makes it so that you can only read from a variable once it is initially assigned a value.
What is final?
State Lopez moving to after school year
What is NC?