Please enable JavaScript to use CodeHS

Outline


1. Primitive Types
1.1 Welcome to AP CS A!
Video 1.1.1 Welcome to AP CS A
1.2 Why Programming? Why Java?
Video 1.2.1 Printing in Java
Check for Understanding 1.2.2 Printing in Java
Example 1.2.3 Hello World
Example 1.2.4 Printing Multiple Lines
Exercise 1.2.5 Welcome Program
Exercise 1.2.6 ASCII Art
Exercise 1.2.7 Fixing a Paragraph
Exercise 1.2.8 Heating Up
Exercise 1.2.9 Personal Timeline
1.3 Variables and Data Types
Video 1.3.1 Variables and Types
Check for Understanding 1.3.2 Variables and Types
Example 1.3.3 Variables
Example 1.3.4 Using Final
Exercise 1.3.5 Our First Integer
Video 1.3.6 Variables and Types Pt. 2
Check for Understanding 1.3.7 Variables and Types Pt. 2
Example 1.3.8 Swapping Two Values
Exercise 1.3.9 Answering Questions
Exercise 1.3.10 Team Rankings
1.4 Expressions and Assignment Statements
Video 1.4.1 Arithmetic Expressions
Check for Understanding 1.4.2 Arithmetic Expressions
Example 1.4.3 Calculator
Example 1.4.4 Temperature Conversion
Example 1.4.5 Tricky Java
Exercise 1.4.6 Weight of a Pyramid
Exercise 1.4.7 Add Fractions
Exercise 1.4.8 Freely Falling Bodies
1.5 Compound Assignment Operators
Video 1.5.1 Compound Assignment Operators
Check for Understanding 1.5.2 Compound Assignment Operators
Example 1.5.3 All Functions Calculator
Example 1.5.4 Increase/Decrease by 1
Exercise 1.5.5 Work Shift
Exercise 1.5.6 My Age
1.6 User Input
Video 1.6.1 User Input
Check for Understanding 1.6.2 User Input Quiz
Example 1.6.3 Increase/Decrease by 1 (User Input)
Example 1.6.4 int Before String
Exercise 1.6.5 My Age (User Input)
Exercise 1.6.6 Night Out
Exercise 1.6.7 MLA Citation
1.7 Casting and Ranges of Variables
Video 1.7.1 Casting
Check for Understanding 1.7.2 Casting
Example 1.7.3 Casting
Exercise 1.7.4 Casting to an Int
Exercise 1.7.5 Casting to a Double
Example 1.7.6 Casting Order of Operations
Example 1.7.7 Rounding Using Casting
Exercise 1.7.8 Movie Ratings
Example 1.7.9 Implicit Casting
Example 1.7.10 Min and Max Values of Integers
Exercise 1.7.11 Integer Overflow
1.8 Primitive Types Quiz
Unit Quiz 1.8.1 Primitive Types Quiz
2. Using Objects
2.1 Objects: Instances of Classes
Video 2.1.1 Objects: Instances of Classes
Check for Understanding 2.1.2 Quiz: Classes and Objects
Video 2.1.3 Multi-File Exercises in Java
Example 2.1.4 Rectangle Skeleton
Example 2.1.5 GrilledCheese Skeleton
Example 2.1.6 Shark Skeleton
Free Response 2.1.7 Free Response: What instance variables?
Exercise 2.1.8 Pizza Instance Variables
Exercise 2.1.9 Phone Skeleton
2.2 Creating and Storing Objects (Instantiation)
Video 2.2.1 Creating and Storing Objects
Check for Understanding 2.2.2 Quiz: Constructors
Example 2.2.3 The Rectangle Class
Example 2.2.4 The Point Class
Example 2.2.5 The Student Class
Exercise 2.2.6 Using the Rectangle Class
Exercise 2.2.7 Student GPA Field
Exercise 2.2.8 Instance Variables for Your Dog
Exercise 2.2.9 Pizza Time!
Badge 2.2.10 Instantiation Badge
2.3 Overloading
Video 2.3.1 Method Overloading
Check for Understanding 2.3.2 Method Overloading Quiz
Example 2.3.3 Overloaded Rectangle
Example 2.3.4 Overloaded GrilledCheese
Example 2.3.5 Using the Scanner Class
Example 2.3.6 Null Pointer Exception
Exercise 2.3.7 Plain Coffee
Exercise 2.3.8 Custom Piñatas
Exercise 2.3.9 Website Class
Exercise 2.3.10 Empty References
2.4 Calling a Void Method
Video 2.4.1 Calling a Void Method
Check for Understanding 2.4.2 Quiz: Void Methods
Example 2.4.3 Area of a Rectangle
Example 2.4.4 Program Flow
Exercise 2.4.5 Hello!
Exercise 2.4.6 Loose Change
Exercise 2.4.7 Chat Bot
Exercise 2.4.8 Greetings and Salutations
2.5 Calling a Void Method with Parameters
Video 2.5.1 Calling a Void Method with Parameters
Check for Understanding 2.5.2 Methods and Parameters
Example 2.5.3 Rectangle
Example 2.5.4 Moving a Point
Exercise 2.5.5 Using the Point Class
Example 2.5.6 Calculator
Exercise 2.5.7 Basketball Players
Exercise 2.5.8 More Operations
Exercise 2.5.9 Chat Bot 2.0
2.6 Calling a Non-void Method
Video 2.6.1 Calling a Non-void Method
Check for Understanding 2.6.2 Quiz: Non-Void Methods
Example 2.6.3 Rectangle
Example 2.6.4 Desks in a Room
Example 2.6.5 Activity Log
Exercise 2.6.6 Number Games
Exercise 2.6.7 Construction Costs
Exercise 2.6.8 How Far Away is ...?
2.7 String Objects
Video 2.7.1 String Objects
Check for Understanding 2.7.2 String Objects
Example 2.7.3 Immutable Strings
Example 2.7.4 String Concatenation
Example 2.7.5 Rectangle Dimensions
Example 2.7.6 Printing Equations
Exercise 2.7.7 Pretty Printing Operations
Exercise 2.7.8 Full Name
Exercise 2.7.9 QuoteMachine
2.8 String Methods
Video 2.8.1 String Methods
Check for Understanding 2.8.2 String Methods
Example 2.8.3 Bigger Strings?
Example 2.8.4 Chopping Strings
Example 2.8.5 Object Concatenation
Exercise 2.8.6 Speaking
Exercise 2.8.7 toString for Flowers
Exercise 2.8.8 Organizing Files
Exercise 2.8.9 Concatenating Fractions
Exercise 2.8.10 Word Games
2.9 Wrapper Classes: Integers and Doubles
Video 2.9.1 Wrapper Classes
Check for Understanding 2.9.2 Quiz: Wrapper Classes
Example 2.9.3 Creating Integers
Example 2.9.4 Using Doubles
Example 2.9.5 Autoboxing Example
Exercise 2.9.6 Order Up!
Exercise 2.9.7 Currency
Exercise 2.9.8 Guess the number!
2.10 Using the Math Class
Video 2.10.1 Using the Math Class
Check for Understanding 2.10.2 Quiz: Static Methods
Example 2.10.3 Using the Math Class
Example 2.10.4 Static Methods: Rectangle
Example 2.10.5 Generating Random Numbers
Exercise 2.10.6 Circle Area
Exercise 2.10.7 The Unit Circle
Exercise 2.10.8 Racing
2.11 Using Objects Quiz
Unit Quiz 2.11.1 Using Objects Quiz
3. Boolean Expressions and if Statements
3.1 Boolean Expressions and if Statements
Video 3.1.1 Comparison Operators
Check for Understanding 3.1.2 Comparison Operators
Example 3.1.3 Old Enough To Vote
Example 3.1.4 Grade Range
Example 3.1.5 Equality of Strings
Exercise 3.1.6 Number Order
Exercise 3.1.7 Sugar Tax
Exercise 3.1.8 Triple Double
3.2 if Statements and Control Flow
Video 3.2.1 If Statements
Check for Understanding 3.2.2 If Statements
Example 3.2.3 Can Vote
Example 3.2.4 Negative Numbers
Example 3.2.5 Rectangle
Exercise 3.2.6 Discounts
Exercise 3.2.7 Sweet or Unsweet?
Exercise 3.2.8 Cooking
Exercise 3.2.9 Rating
3.3 if-else Statements
Video 3.3.1 If-Else Statements
Check for Understanding 3.3.2 If-Else
Example 3.3.3 Bill with add tip
Example 3.3.4 Even and Odd
Exercise 3.3.5 Positive or Negative
Exercise 3.3.6 Battleships Move
Exercise 3.3.7 Ratings
Exercise 3.3.8 Player Score
3.4 else if Statements
Video 3.4.1 else-if Statements
Check for Understanding 3.4.2 else-if
Example 3.4.3 Add Tip
Example 3.4.4 Add Tip - 8 or 4 Customers
Example 3.4.5 Add Tip - 8, 4, 2 Customers
Exercise 3.4.6 Positive, Negative, or Zero
Exercise 3.4.7 Salmon Spawn
Exercise 3.4.8 Berries
Exercise 3.4.9 Battleships
3.5 Compound Boolean Expressions
Video 3.5.1 Compound Boolean Expressions
Check for Understanding 3.5.2 Logical Operators
Example 3.5.3 Light Switch
Example 3.5.4 Number in Range
Example 3.5.5 Pizza Slices
Exercise 3.5.6 Roller Coaster
Exercise 3.5.7 Compound Roller Coaster
Exercise 3.5.8 Divisibility
Exercise 3.5.9 Find the Minimum
3.6 Equivalent Boolean Expressions
Video 3.6.1 Equivalent Boolean Expressions
Check for Understanding 3.6.2 De Morgan's Laws
Example 3.6.3 De Morgan AND
Example 3.6.4 De Morgan OR
Exercise 3.6.5 Amusement Park
Exercise 3.6.6 Odd Numbers
Exercise 3.6.7 Odd and Even
Free Response 3.6.8 Odd and Even Free Response
3.7 Comparing Objects
Video 3.7.1 Comparing Objects
Check for Understanding 3.7.2 Comparing Objects
Example 3.7.3 Comparing Strings
Example 3.7.4 Comparing Rectangles
Example 3.7.5 Null Test
Example 3.7.6 Identify Aliases
Exercise 3.7.7 String Variable Trace
Free Response 3.7.8 String Trace
Exercise 3.7.9 Three Strings
Exercise 3.7.10 Comparing Circles
3.8 Boolean Expressions and if Statements Quiz
Unit Quiz 3.8.1 Boolean Expressions and If Statements Quiz
4. Iteration
4.1 Iteration
Video 4.1.1 While Loops
Check for Understanding 4.1.2 While Loops
Example 4.1.3 While Loop Countdown
Example 4.1.4 Get Down to One
Example 4.1.5 Running Average
Exercise 4.1.6 Making Taffy
Exercise 4.1.7 Guess the Number
Exercise 4.1.8 Divisibility
Exercise 4.1.9 Max and Min Values
4.2 For Loops
Video 4.2.1 For Loops
Check for Understanding 4.2.2 For Loops
Example 4.2.3 For Loop
Example 4.2.4 Countdown
Example 4.2.5 Count By Twos
Exercise 4.2.6 Print the Odds
Exercise 4.2.7 Repeat 100 Times
Exercise 4.2.8 Replace WHILE with FOR Loop
Exercise 4.2.9 Replace FOR Loop with WHILE Loop
Exercise 4.2.10 Multiplication Table
4.3 Developing Algorithms Using Strings
Video 4.3.1 Developing Algorithms Using Strings
Check for Understanding 4.3.2 Developing Algorithms Using Strings
Example 4.3.3 Traversing Strings
Example 4.3.4 Replace Characters
Example 4.3.5 Reverse String
Exercise 4.3.6 Replace Letter
Exercise 4.3.7 Password Checker
Exercise 4.3.8 Finding Palindromes
Exercise 4.3.9 Fixing Grammar
Exercise 4.3.10 Teen Talk
Badge 4.3.11 String Processing Badge
4.4 Nested Iteration
Video 4.4.1 Nested Iteration
Check for Understanding 4.4.2 Nested Iteration
Example 4.4.3 Make a Rectangle
Example 4.4.4 Nested Loop Iteration Counts
Example 4.4.5 Inverted Triangle
Exercise 4.4.6 Upright Number Triangle
Exercise 4.4.7 Make a Tree
Exercise 4.4.8 Multiplication Table
4.5 Informal Code Analysis
Video 4.5.1 Informal Code Analysis
Check for Understanding 4.5.2 Informal Code Analysis
Example 4.5.3 Loop Execution Count
Example 4.5.4 While Loop Time
Example 4.5.5 For Loop Time
Free Response 4.5.6 Time Comparisons
Exercise 4.5.7 Improving findChar Speed
Example 4.5.8 Improving findChar Speed Check
Free Response 4.5.9 findChar Speed Reflection
4.6 Iteration Quiz
Unit Quiz 4.6.1 Iteration Quiz
5. Writing Classes
5.1 Writing Classes
Video 5.1.1 Anatomy of Classes
Check for Understanding 5.1.2 Quiz: Access Modifiers
Example 5.1.3 Rectangle Getter Methods
Exercise 5.1.4 Access for DNA Class
Exercise 5.1.5 Access for Employee Class
Exercise 5.1.6 Fixing Circle
5.2 Constructors
Video 5.2.1 Constructors
Check for Understanding 5.2.2 Quiz: Constructors
Example 5.2.3 SuperHero Class
Example 5.2.4 Initializing an Object without a Constructor
Exercise 5.2.5 Batting Average
Exercise 5.2.6 Dog Class
Exercise 5.2.7 Student Overload
Exercise 5.2.8 SchoolClub Class
5.3 Documentation with Comments
Video 5.3.1 Documentation with Comments
Check for Understanding 5.3.2 Quiz: Comments
Example 5.3.3 Comments for Debugging
Example 5.3.4 Power Class with Comments
Exercise 5.3.5 Commenting Activity Tracker
Exercise 5.3.6 Commenting Activity Log
Exercise 5.3.7 C.Y.O.A. Layout
Exercise 5.3.8 C.Y.O.A. Finishing the story
5.4 Accessor Methods
Video 5.4.1 Accessor Methods
Check for Understanding 5.4.2 Quiz: Accessors
Example 5.4.3 Student Getter Methods
Example 5.4.4 SuperHero Class with Secret Identity
Exercise 5.4.5 Text Messages Getter Methods
Exercise 5.4.6 Full Dragon Class
Exercise 5.4.7 A Different Dragon Class
Exercise 5.4.8 A Chef's Best Meal
5.5 Mutator Methods
Video 5.5.1 Mutator Methods
Check for Understanding 5.5.2 Quiz: Mutators
Example 5.5.3 SuperHero Class with Mutator Methods
Example 5.5.4 Student Setters
Exercise 5.5.5 Rectangle class
Exercise 5.5.6 Full Fraction Class
Exercise 5.5.7 Weekly Routine
5.6 Writing Methods
Video 5.6.1 Writing Methods
Check for Understanding 5.6.2 Quiz: Writing Methods
Example 5.6.3 Triangle Class
Example 5.6.4 Baseball Player Class
Exercise 5.6.5 Distance Conversions
Exercise 5.6.6 Food App Demo
Exercise 5.6.7 Car Class
Resource 5.6.8 Combination Lock FRQ
5.7 Static Variables and Methods
Video 5.7.1 Static Variables and Methods
Check for Understanding 5.7.2 Quiz: Static Methods
Example 5.7.3 Static SuperHero
Example 5.7.4 Static Variables: Circle
Exercise 5.7.5 Randomizer Class
Exercise 5.7.6 Rock, Paper, Scissors!
Exercise 5.7.7 How Many Players in the Game?
5.8 Scope and Access
Video 5.8.1 Scope and Access
Check for Understanding 5.8.2 Quiz: Local Variables and Scope
Example 5.8.3 Instance Variable Scope
Example 5.8.4 Local Variable Scope
Example 5.8.5 Variable Shadowing
Example 5.8.6 Method Decomposition with Triva
Exercise 5.8.7 Scope
Exercise 5.8.8 Which Variables Exist?
Exercise 5.8.9 Broken Calculator
5.9 this Keyword
Video 5.9.1 this Keyword
Check for Understanding 5.9.2 Quiz: this Keyword
Example 5.9.3 Rectangles and this
Example 5.9.4 Student and this
Exercise 5.9.5 Write Your Own CodeHS
Exercise 5.9.6 Song Class
Exercise 5.9.7 Fraction Math
5.10 Ethical and Social Implications of Computing
Video 5.10.1 Implications of Computing Systems
Free Response 5.10.2 Computing and Your Life
Check for Understanding 5.10.3 Quiz: Ethical and Social Impact
Connection 5.10.4 ACM General Ethical Principles
Free Response 5.10.5 ACM General Ethical Principles
Connection 5.10.6 Bias in Facial Recognition
Free Response 5.10.7 Bias in Facial Recognition
Connection 5.10.8 Self-driving Cars
Free Response 5.10.9 Self-driving Cars
5.11 Writing Classes Quiz
Unit Quiz 5.11.1 Writing Classes Quiz
6. Array
6.1 Array
Video 6.1.1 Introduction to Arrays
Check for Understanding 6.1.2 Quiz: Arrays
Example 6.1.3 Making an Array
Example 6.1.4 Make an Empty Array
Example 6.1.5 Indexing Into an Array
Exercise 6.1.6 Our First Array
Exercise 6.1.7 Set Scores
Exercise 6.1.8 Last Element in Array
Exercise 6.1.9 Snap Shot Splash Screen
6.2 Traversing Arrays
Video 6.2.1 Using Arrays
Check for Understanding 6.2.2 Quiz: Using Arrays
Example 6.2.3 Iterating Over An Array - For Loop
Example 6.2.4 Iterating Over An Array - While Loop
Example 6.2.5 Array Out of Bounds
Example 6.2.6 Finding a Target Value
Exercise 6.2.7 Print Array
Exercise 6.2.8 Print Odd Array Indices
Exercise 6.2.9 Find Index of a String
Exercise 6.2.10 Fibonacci Sequence
6.3 Enhanced for Loop for Arrays
Video 6.3.1 Enhanced For Loop for Arrays
Check for Understanding 6.3.2 Enhanced For Loop for Arrays
Example 6.3.3 Enhanced For Loop
Example 6.3.4 Classroom Array
Example 6.3.5 Updating Values in a Loop
Exercise 6.3.6 Print Odds
Exercise 6.3.7 Largest Value
Exercise 6.3.8 Classroom Array
Exercise 6.3.9 Array Average
6.4 Developing Algorithms Using Arrays
Video 6.4.1 Developing Algorithms Using Arrays
Check for Understanding 6.4.2 Developing Algorithms Using Arrays
Example 6.4.3 Finding the Minimum Value
Example 6.4.4 Reordering an Array
Example 6.4.5 Finding Duplicates
Exercise 6.4.6 Find the Median
Exercise 6.4.7 Find the Last Multiple of 3
Exercise 6.4.8 Most Improved
Challenge 6.4.9 Car Showroom
6.5 Array Quiz
Unit Quiz 6.5.1 Array Quiz
7. ArrayList
7.1 ArrayList
Video 7.1.1 ArrayLists
Check for Understanding 7.1.2 Quiz: ArrayList
Example 7.1.3 Initializing an ArrayList
Example 7.1.4 Array vs. ArrayList Initialization
Free Response 7.1.5 Arrays vs. ArrayLists
Exercise 7.1.6 Initializing an ArrayList
Exercise 7.1.7 Car Inventory
7.2 ArrayList Methods
Video 7.2.1 ArrayLists Methods
Check for Understanding 7.2.2 Quiz: ArrayList Methods
Example 7.2.3 ArrayList and Java Primitives
Example 7.2.4 ArrayList Methods
Example 7.2.5 Array vs. ArrayList Methods
Exercise 7.2.6 Get First Element
Exercise 7.2.7 ArrayList of Even Numbers
Exercise 7.2.8 Teacher Class List
Exercise 7.2.9 Teacher Class List Methods
7.3 Traversing ArrayLists
Video 7.3.1 Traversing ArrayLists
Check for Understanding 7.3.2 Quiz: Traversing Arrays
Example 7.3.3 Reading List
Example 7.3.4 While Loop ArrayList Traversal
Example 7.3.5 ArrayList Traversing Error
Exercise 7.3.6 Traversing Odds
Exercise 7.3.7 ArrayList Helper Methods
Exercise 7.3.8 Road Trip!
7.4 Developing Algorithms using ArrayLists
Video 7.4.1 Developing Algorithms Using ArrayLists
Check for Understanding 7.4.2 Quiz: Developing Algorithms
Example 7.4.3 Traversing ArrayLists Simultaneously
Example 7.4.4 Inserting Elements While Traversing ArrayLists
Exercise 7.4.5 ArrayList equals
Exercise 7.4.6 Airline Tickets
Exercise 7.4.7 Billboard Top 10
Exercise 7.4.8 User Data Cleanup
7.5 Searching
Video 7.5.1 Linear Search
Check for Understanding 7.5.2 Quiz: Linear Search
Example 7.5.3 Linear Search
Exercise 7.5.4 Linear Search on ArrayList with While Loop
Exercise 7.5.5 Fantasy Football Roster
Resource 7.5.6 Card Collection FRQ
7.6 Sorting
Video 7.6.1 Selection Sort
Check for Understanding 7.6.2 Selection Sort
Example 7.6.3 Selection Sort
Exercise 7.6.4 Explore Selection Sort
Video 7.6.5 Insertion Sort
Check for Understanding 7.6.6 Insertion Sort
Example 7.6.7 Insertion Sort
Example 7.6.8 Visualizing Algorithms
Exercise 7.6.9 Explore Insertion Sort
Exercise 7.6.10 Selection Sort vs. Insertion Sort Run Time
Free Response 7.6.11 Selection Sort vs. Insertion Sort
Exercise 7.6.12 Phonebook
7.7 Ethical Issues Around Data Collection
Video 7.7.1 Ethical Issues Around Data Collection
Check for Understanding 7.7.2 Ethical Issues Around Data Collection
Connection 7.7.3 The Curly Fry Conundrum
Free Response 7.7.4 Reflection
Connection 7.7.5 Guidelines on Ethical Data Use
Free Response 7.7.6 Issue News Article
Badge 7.7.7 ArrayList Badge
7.8 ArrayList Quiz
Unit Quiz 7.8.1 ArrayList Quiz
8. 2D Array
8.1 2D Arrays
Video 8.1.1 2D Arrays
Check for Understanding 8.1.2 Quiz: 2D Arrays
Example 8.1.3 GradeBook
Example 8.1.4 ChessBoard
Exercise 8.1.5 Manipulating 2D Arrays
Exercise 8.1.6 Complete Chessboard
Exercise 8.1.7 Tic Tac Toe Board
8.2 Traversing 2D Arrays
Video 8.2.1 Traversing 2D Arrays
Check for Understanding 8.2.2 Quiz: Traversing 2D Arrays
Example 8.2.3 Traversing Gradebook
Example 8.2.4 Linear Search 2D Arrays
Example 8.2.5 Row vs. Column Major
Free Response 8.2.6 Row vs. Column Major
Exercise 8.2.7 Sum Rows in a 2D Array
Exercise 8.2.8 Tic Tac Toe Methods
Challenge 8.2.9 Finalizing Tic Tac Toe
Badge 8.2.10 2D Array Badge
8.3 2D Array Quiz
Unit Quiz 8.3.1 2D Array Quiz
9. Inheritance
9.1 Inheritance
Video 9.1.1 Inheritance
Check for Understanding 9.1.2 Quiz: Subclasses and Superclasses
Example 9.1.3 Person Superclass
Example 9.1.4 Vehicle Superclass
Example 9.1.5 High School Student
Exercise 9.1.6 Person / Student Object
Exercise 9.1.7 Books
Exercise 9.1.8 Computers
Exercise 9.1.9 More Animals!
9.2 Writing Constructors for Subclasses
Video 9.2.1 Writing Constructors for Subclasses
Check for Understanding 9.2.2 Quiz: Writing Constructors for Subclasses
Example 9.2.3 Student Subclass
Example 9.2.4 Shape Class
Example 9.2.5 Implicit Call to Super
Exercise 9.2.6 Students
Exercise 9.2.7 Instruments
Exercise 9.2.8 Foods
Exercise 9.2.9 Clothing Store
9.3 Overriding Methods
Video 9.3.1 Overriding Methods
Check for Understanding 9.3.2 Quiz: Overriding Methods
Example 9.3.3 Square is a Rectangle
Example 9.3.4 Student toString
Example 9.3.5 Restaurant Bills
Exercise 9.3.6 Dogs Bark
Exercise 9.3.7 Electric Cars
Exercise 9.3.8 Online Companies
9.4 super Keyword
Video 9.4.1 super Keyword
Check for Understanding 9.4.2 Quiz: super Keyword
Example 9.4.3 Square Class
Example 9.4.4 Animal Class
Example 9.4.5 Apple Pie
Exercise 9.4.6 Squares
Exercise 9.4.7 Bank Accounts
Exercise 9.4.8 Employees
Exercise 9.4.9 Student Test Scores
9.5 Creating References Using Inheritance
Video 9.5.1 Creating References Using Inheritance Hierarchies
Check for Understanding 9.5.2 Quiz: References Using Inheritance Hierarchies
Example 9.5.3 Animal Sounds
Example 9.5.4 Shape Areas
Example 9.5.5 Person Class
Exercise 9.5.6 Pies
Exercise 9.5.7 Creating .equals
Exercise 9.5.8 Online Companies Revisited
Exercise 9.5.9 Assignments
9.6 Polymorphism
Video 9.6.1 Polymorphism
Check for Understanding 9.6.2 Quiz: Polymorphism
Example 9.6.3 Using Person Methods
Example 9.6.4 Modified Student Class
Example 9.6.5 Vehicle Methods
Exercise 9.6.6 Which Team?
Exercise 9.6.7 Cars
Exercise 9.6.8 Library Books
Exercise 9.6.9 Fun with Solids
9.7 Object Superclass
Video 9.7.1 Object Superclass
Check for Understanding 9.7.2 Quiz: Object Superclass
Example 9.7.3 Default Values
Example 9.7.4 Override toString
Example 9.7.5 Override equals
Exercise 9.7.6 Equal?
Exercise 9.7.7 Equals? - Part 2
Exercise 9.7.8 Equal Rectangles
Exercise 9.7.9 2D Array Tester
9.8 Inheritance Quiz
Unit Quiz 9.8.1 Inheritance Quiz
10. Recursion
10.1 Recursion
Video 10.1.1 Recursion
Check for Understanding 10.1.2 Quiz: Recursion
Example 10.1.3 Summing
Example 10.1.4 Sum Array
Example 10.1.5 Fibonacci Recursion
Exercise 10.1.6 Factorial
Exercise 10.1.7 Countdown!
Exercise 10.1.8 Recursive Minimum
Exercise 10.1.9 Bacteria Cultures
10.2 Recursive Searching
Video 10.2.1 Recursive Searching
Check for Understanding 10.2.2 Quiz: Recursive Searching
Example 10.2.3 Binary Search
Example 10.2.4 Binary Recursive
Example 10.2.5 Binary vs Linear
Exercise 10.2.6 Exploring Binary Searches
Exercise 10.2.7 Comparing Binary Search and Linear Search
Exercise 10.2.8 Maximum Iterations
10.3 Recursive Sorting
Video 10.3.1 Recursive Sorting
Check for Understanding 10.3.2 Quiz: Recursive Sorting
Example 10.3.3 Merge Sort
Example 10.3.4 Sort Visualizer
Exercise 10.3.5 Explore Merge Sort
Exercise 10.3.6 Merge Sort Benchmark Testing
Exercise 10.3.7 Recursive Calls
Exercise 10.3.8 Sort Benchmark Testing
10.4 Recursion Quiz
Unit Quiz 10.4.1 Recursion Quiz