Joel Thomas
Java Review - Inheritance and Polymorphism - Briefly
A
A
B
B
B
D
is a superclass of B and C
is a superclass of D
C
a B is-a A, a C is-a A
a D is-a B, a D is-a A
and C are subclasses of A
is a subclass of B
D
Notes on Inheritance:
1.
2.
3.
4.
5
1
LAB ASSIGNMENT A17.1
QuadSort
Instructions:
1. Add the code for the 3 quadratic sorting algorithms to the sorting template program which I have
given you. Add the appropriate lines of code to count the number of steps for each algorithm. The
student les
1
Handout A 26.1
quickSort Method
void quickSort (ArrayList <Comparable> list, int first, int last)cfw_
int g = first, h = last;
int midIndex = (first + last) / 2;
Comparable dividingValue = list.get(midIndex);
docfw_
while (list.get(g).compareTo(dividin
Java Review - Lists, Arrays, ArrayLists and LinkedLists with APIs at the end
What is the output of each of the following code segments?
1.
int [] x = cfw_3,8,4,5,8;
System.out.println(x.length + " " +
x[3]);
2.
int c[] = new int[5];
System.out.println(c[3
Java Review - Inheritance and Polymorphism - Briefly
A
A
B
B
B
D
is a superclass of B and C
is a superclass of D
C
a B is-a A, a C is-a A
a D is-a B, a D is-a A
and C are subclasses of A
is a subclass of B
D
Notes on Inheritance:
1.
2.
3.
4.
5.
6.
7.
8.
s
Lesson A17
1
STUDENT LESSON
A17 Quadratic Sorting Algorithms
INTRODUCTION:
In this lesson, you will learn about three sorting algorithms: bubble, selection,
and insertion. You are responsible for knowing how they work, but you do not
necessarily need to m
Java Advanced Review #13 - Exceptions
Throwab
le
Erro
r
OutOfMemoryErr
or
StackOverflowE
rror
This diagram shows only
the Errors and
Exceptions that are
pertinent to the UIL
Computer Science tests
and does not contain all
super classes and
subclasses.
The
Java Boolean Review
Basic Laws of Boolean Algebra
A | (B | C) = (A | B) | C
A & (B & C) = (A & B) & C
Associative law for or
Associative law for and
A & (B | C) = (A & B) | (A & C)
A | (B & C) = (A | B) & (A | C)
Distributive law for and over or
Distribut
WORKSHEET A29.1
LinkedList
1. The following program builds on Worksheet A15.1, ArrayList that uses an ArrayList to store and
perform geometric calculations on a set of coordinate points using the Point2D.Double class. In
this problem, we will use a Linked