How do you declare a NoNullArrayList?
public class NoNullArrayList < T > extends ArrayList < T > {}
How do you declare an OrderedArrayList?
public class OrderedArrayList< T extends Comparable< T» extends NoNullArrayList< T>
What is bubble sort? What is its worst case?
What is Optimized Bubble Sort?
Uses swappedFlag to see if any swaps occur
What is selection sort? What is its worst case?
What is insertion sort?
What does Math.random() do?
Returns a number from 0.0 to 1.0 (exclusively).
What are the formulas for printing a number between a (inclusive) and b (inclusive)?
(int) ((Math.random() * range) + min)
(rand.nextInt(range) + min)
Where range = max - min + 1
What are the formulas for printing a number between a (inclusive) and b (exclusive)?
(int) (Math.random() * range) + min)
(rand.nextInt(range) + min)
Where range = max - min
How do you declare a Random class?
Random rand = new Random();
What does String[] args do?
Allows a program to receive input from the command line
What is args used for?
A String array
What is abstraction?
Abstraction hides certain details and shows only the essential information to the user.
What are some characteristics of abstract classes?
What are abstract methods?
When using interfaces, what replaces the word extends?
implements
What does an interface do?
States the necessary methods with no bodies.