ArrayLists and Arrays
For loop and For-each loop
HashMap and HashSet
Iterators
Miscellaneous
100
Remove() Add() Get() Size()
What are the four primary methods of the ArrayList class ?
100
Looping construct optimized for use with collections.
What is the for-each loop ?
100
A collection of key/value pairs.
What is a map ?
100
iterator()
What is the method call that returns an Iterator object ?
100
Used to check for String equality.
What is the equals() method ?
200
Higher index items move down by one position.
What happens when you remove an item from an ArrayList ?
200
This loop is usually used to cycle through an array.
What is a for loop ?
200
Does not store duplicate values.
What is the HashSet ?
200
hasNext() method
Which method checks to see if there are more items in the collection ?
200
Used to remove leading and trailing spaces.
What is the trim() method ?
300
This ranges from zero to one less than the size of the ArrayList.
What is the range of the index ?
300
Initialization, condition and post-body action.
What are the three parts of the for loop header ?
300
put() and get()
What are the most important methods of the HashMap ?
300
next() method
Which method gets the next item ?
300
Random class.
What is the class used to generate random numbers ?
400
Gives total number of items in an array.
What is the length field ?
400
Contains three items, with two on the left separated by a colon from one on the right.
What is the for-each loop header ?
400
add() method
How to add items to the HashSet ?
400
remove()
Which method removes the current item ?
400
-2147483648 to 2147483647
What is the range of Random's nextInt() method ?
500
test[0]
How do we access the first element of array test[] ?
500
Has read-only ability.
What is the for-each loop ?
500
isEmpty() method
Which method checks if the collection has any items ?
500
java.util package
What is the package that the Iterator class lives in ?
500
@author @version @param @return
What are the four directives of Javadoc ?
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
IOOP - Chapters 4 and 5
No teams
1 team
2 teams
3 teams
4 teams
5 teams
6 teams
7 teams
8 teams
9 teams
10 teams
Custom
Press
F11
Select menu option
View > Enter Fullscreen
for full-screen mode
Edit
•
Print
•
Download
•
Embed
•
Share
JeopardyLabs