Title: JavaChapter7

Q: Much like arrays but with additional functions
A: ArrayLists

Q: This type of counting allows loops to access every element of an array
A: Zero-based counting

Q: What should the structure of an array initializer look like?
A: int[] n = {1,2,3}

A try block contains a code that can throw an exception and a catch block contains a code that handles an exception.

Q: A statement that goes through elements of an array without using a counter
A: Enhanced for statement

Q: Manipulating every element of each array
A: traversing

Q: What is sorting?
A: Arranging elements into increasing order.

Q: What does the command binaraySearch do?
A: Determines if an array contains a specific value and where it is located

Q: Add, clear, contains, get, and remove are all methods and properties of what class?
A: ArrayList<T>

Q: What do fillArc and drawArc do repectively?
A: Fill in and draw the edge of an arc

Q: An [...] is a [...] containing values that all have [...] type.
A: array; group of variables; the same

Q: How to determine length of a 1D array
A: nameOfArray.length()

Q: How to declare and create an integer array
A: int[] array;
array = new int[10]

Q: Enhanced for statement syntax
A: for (parameter : ArrayName)
   statements . . .

Q: How to create a multidimentional array with the same number of columns in every row
A: ArrayType[][] arrayName= new arrayType[ numRows][numColumns];

Q: This is the code used to copy the elements of one array into another
A: arraycopy

Q: method used to append an element to the end of an ArrayList
A: add

Q: this method returns the number of elements currently in an ArrayList
A: size

Q: exception
A: this indicates a problem that occures while a program executes. the word implies that you can run the program normally and the program represents the exception to the rule and it is run anyway

Q: enhanced for statement
A: this processes through the elements of an array without using a counter, thus the program stays in the array bounds.

Q: varriable length argument lists
A: with these, you can create methods that take a random amount of arguments

Q: collections
A: predefined data structures used in storing groups of related objects.

Q: Data Structures
A: collections of related data items

Q: index/subscript
A: the position number of the element.

Q: Fault-Tolerant Programs
A: programs that can handle exceptions in the code

Q: Pass-by-value
A: a copy of the argument's value is passed to the called method.

Q: m-by-n array
A: an array that can be called to have "m" number of rows and "n" number of columns.

Q: What would "myDeckOfCards.shuffle();" do?
A: "Shuffle the cards" or place them in a random order

Q: What does "ArrayIndexOutOfBoundsException" mean?
A: The data is outside the bounds of the array and the program terminates

Q: int b[] [] = { { 1,2 } , { 3, 4 } } is an example of ....
A: nested array initializers

Q: a comma-separated list of expressions...
A: initializer list or array initializer

Q: True or false: Arrays can be passed to methods?
A: True

Q: Declares a constant variable
A: final modifier

Q: Arrays use [...] which allows the to increase their size at execution to accommodate more data.
A: dynamic resizing

Q: Every array has its own lengths stored within it known as [...]
A: length instance variable

Q: [...] in the format specifier displays a leading 0 for values with fewer digits than the field
A: 0 flag

Q: Two ways to pass arguments in the method calls are [...] and [...]
A: pass-by-value; pass reference

Q: Arrays that require two indices to identify a particular element are known as [...]
A: two-dimensional arrays

Q: A two dimensional array with two rows and columns can be declared and initialized with [...]
A: nest array intializers

Q: A type followed by an [...] in a method's parameter list indicates that the method receives a variable number of arguments
A: ellipsis (...)

Q: Passing arguments through the command line is known as [...]
A: command-line arguments