Please enable JavaScript to use CodeHS

Outline


1. Classes and Object-Oriented Programming
1.1 Introduction to Classes and Objects
Video 1.1.1 What is a Class?
Quiz 1.1.2 Quiz: Classes and Objects
Example 1.1.3 The Rectangle Class
Example 1.1.4 The Point Class
Example 1.1.5 The Student Class
Exercise 1.1.6 Using the Rectangle Class
Exercise 1.1.7 Calling A Method
Exercise 1.1.8 Using the Point Class
Exercise 1.1.9 Using the Student Class
1.2 Classes vs. Objects
Video 1.2.1 Classes and Objects
Quiz 1.2.2 Classes vs. Objects vs. Instances
Example 1.2.3 Classes, Objects, and Instances
Example 1.2.4 Creating Rectangle Objects
Exercise 1.2.5 Text Messages
1.3 Using a Class as a Client
Video 1.3.1 How to Use a Class
Quiz 1.3.2 Quiz: Client of a Class
Example 1.3.3 Using the Rectangle Class as a Client
Example 1.3.4 Using the Randomizer Class as a Client
Exercise 1.3.5 Coin Flips
Exercise 1.3.6 Longest Streak
Example 1.3.7 Testing the GeoLocation Class
Exercise 1.3.8 How Far Away is ...?
1.4 Writing Classes
Video 1.4.1 Constructors
Quiz 1.4.2 Quiz: Constructors
Example 1.4.3 Student Constructor
Example 1.4.4 Rectangle Constructor
Exercise 1.4.5 Triangle Class: Constructor
Example 1.4.6 Rectangle toString
Example 1.4.7 Student toString
Exercise 1.4.8 toString for Flowers
Exercise 1.4.9 Instance Variables for Your Dog
Exercise 1.4.10 Student GPA Field
Free Response 1.4.11 Free Response: What instance variables?
Exercise 1.4.12 Pizza Time!
Exercise 1.4.13 Fractions
1.5 Writing Classes and Instance Methods
Video 1.5.1 Writing Instance Methods
Quiz 1.5.2 Quiz: Writing Methods
Example 1.5.3 Area of a Rectangle
Example 1.5.4 Moving a Point
Exercise 1.5.5 Writing getPerimeter()
Exercise 1.5.6 Honors Students
Exercise 1.5.7 The Full Triangle Class
Exercise 1.5.8 Batting Average
Exercise 1.5.9 Distance in Kilometers
1.6 Getter and Setter Methods
Video 1.6.1 Getter and Setter Methods
Quiz 1.6.2 Quiz: Getter and Setter Methods
Example 1.6.3 Rectangle Getter Methods
Example 1.6.4 Student Getter Methods
Exercise 1.6.5 Text Messages Getter Methods
Exercise 1.6.6 Fractions Getter/Setter Methods
Exercise 1.6.7 Full Fraction Class
1.7 Class Methods and Class Variables
Video 1.7.1 Static Methods and Variables (Class Methods and Class Variables)
Quiz 1.7.2 Quiz: Static Methods
Example 1.7.3 Student Class Variables and Methods
Example 1.7.4 Using the Math Class
Example 1.7.5 Using Randomizer
Example 1.7.6 Static Variables: Circle
Exercise 1.7.7 The Unit Circle
Exercise 1.7.8 How Many Players in the Game?
Exercise 1.7.9 Circle Area, another way
Practice 1.7.10 Rock, Paper, Scissors: Get Winner
Exercise 1.7.11 Rock, Paper, Scissors!
1.8 Method Overloading
Video 1.8.1 Method Overloading
Quiz 1.8.2 Method Overloading Quiz
Example 1.8.3 Sum Method Overloading
Example 1.8.4 Constructor Overloading
Exercise 1.8.5 Product Method Overloading
1.9 Local Variables and Scope
Video 1.9.1 Local Variables and Scope
Quiz 1.9.2 Local Variables and Scope Quiz
Example 1.9.3 Instance Variable Scope
Example 1.9.4 Local Variable Scope
Example 1.9.5 Variable Shadowing
Exercise 1.9.6 Which Variables Exist?
1.10 Key Terms for Classes
Video 1.10.1 Key Terms for Classes
Quiz 1.10.2 Quiz: This Keyword
Example 1.10.3 Rectangles and this
Exercise 1.10.4 Batteries
Exercise 1.10.5 Write Your Own CodeHS
1.11 Objects vs Primitives
Video 1.11.1 Objects vs Primitives
Quiz 1.11.2 Objects vs Primitives Quiz
Example 1.11.3 Comparing Rectangles
Example 1.11.4 Changing Dogs
Example 1.11.5 Null Pointer Exception
Free Response 1.11.6 Objects vs Primitives
Exercise 1.11.7 Comparing Circles
1.12 Inheritance
Video 1.12.1 Inheritance
Quiz 1.12.2 Quiz: Subclasses and Superclasses
Example 1.12.3 Square is a Rectangle
Exercise 1.12.4 Finding The Perimeters
1.13 Class Design and Abstract Classes
Video 1.13.1 Class Design and Abstract Classes
Quiz 1.13.2 Quiz: Class Design
Example 1.13.3 The Shape Hierarchy
Example 1.13.4 Classes for Dessert
Exercise 1.13.5 Clothing Store
1.14 Polymorphism
Video 1.14.1 Polymorphism
Quiz 1.14.2 Quiz: Polymorphism
Example 1.14.3 Animal Sounds
Example 1.14.4 Shape Areas
Exercise 1.14.5 Fun with Solids
1.15 Interfaces
Video 1.15.1 Interfaces
Quiz 1.15.2 Quiz: Interfaces
Example 1.15.3 Comparable Interface
Example 1.15.4 Summable Interface
Exercise 1.15.5 Fraction is Comparable
Exercise 1.15.6 City is Summable
Badge 1.15.7 Classes and Object-Oriented Programming Badge
1.16 Unit 4 Quiz
Quiz 1.16.1 Unit 4 - Classes and Object-Oriented Programming
2. Data Structures
2.1 What are Data Structures?
Video 2.1.1 What are Data Structures?
Quiz 2.1.2 Quiz: Data Structures
Free Response 2.1.3 Data Structures Everywhere
2.2 Introduction to Arrays
Video 2.2.1 Introduction to Arrays
Quiz 2.2.2 Quiz: Arrays
Example 2.2.3 Making an Array
Example 2.2.4 Make an Empty Array
Example 2.2.5 Indexing Into an Array
Exercise 2.2.6 Our First Array
Practice 2.2.7 Array Length
Practice 2.2.8 Last Element in Array
2.3 Using Arrays
Video 2.3.1 Using Arrays
Quiz 2.3.2 Quiz: Using Arrays
Example 2.3.3 Iterating Over an Array
Example 2.3.4 Sum Array
Example 2.3.5 Array Out of Bounds
Exercise 2.3.6 Print Array
Exercise 2.3.7 Print Odd Array Indices
Practice 2.3.8 Find the Minimum Index
Example 2.3.9 Classroom Example
Example 2.3.10 Exam Scores
Example 2.3.11 Array References
Practice 2.3.12 Find the Median
Exercise 2.3.13 Top Student
2.4 ArrayList Methods
Video 2.4.1 ArrayLists
Quiz 2.4.2 Quiz: ArrayList
Example 2.4.3 Hello World ArrayList
Example 2.4.4 ArrayList and Java Primitives
Example 2.4.5 ArrayList Size Method
Exercise 2.4.6 Get First Element
Example 2.4.7 Reading List
Example 2.4.8 Texting in Class
Exercise 2.4.9 Road Trip!
2.5 Arrays vs ArrayLists
Video 2.5.1 Arrays vs ArrayLists
Quiz 2.5.2 Quiz: Arrays vs ArrayList
Example 2.5.3 Expanding Array
Exercise 2.5.4 Improving Expanding Array
Example 2.5.5 Array vs ArrayList
2.6 The List Interface
Video 2.6.1 The List Interface
Quiz 2.6.2 The List Interface Quiz
Example 2.6.3 Reverse the List
Practice 2.6.4 Summer Reading
2.7 2D Arrays (Matrices or Grids)
Video 2.7.1 2D Arrays
Quiz 2.7.2 Quiz: 2D Arrays
Example 2.7.3 Nested Loops
Practice 2.7.4 Ice Cream Combos
Example 2.7.5 First 2D Array
Example 2.7.6 Initializing a 2D Array
Example 2.7.7 The Matrix
Practice 2.7.8 Sum Rows in a Matrix
2.8 HashMaps
Video 2.8.1 HashMaps
Quiz 2.8.2 Quiz: HashMaps
Example 2.8.3 The Phonebook
Exercise 2.8.4 Word Counts
2.9 Binary
Video 2.9.1 Number Systems
Quiz 2.9.2 Number Systems Quiz
Example 2.9.3 Converting Octal to Decimal
Practice 2.9.4 Converting Binary to Decimal
Video 2.9.5 Using Binary
Quiz 2.9.6 Using Binary Quiz
Example 2.9.7 Integer Limits
Practice 2.9.8 Binary Translator
2.10 Writing BlackJack
Video 2.10.1 The Card Class
Example 2.10.2 The Card Class
Video 2.10.3 The Deck Class
Example 2.10.4 The Deck Class
Video 2.10.5 The Hand Class
Example 2.10.6 The Hand Class
Video 2.10.7 The Blackjack Class
Example 2.10.8 The Blackjack Game
Exercise 2.10.9 Improving Blackjack
Badge 2.10.10 Data Structures Exercises Badge
2.11 Battleship
Video 2.11.1 Battleship Demo
Exercise 2.11.2 Battleship Part 1: The Ship Class
Exercise 2.11.3 Battleship Part 2: The Location Class
Exercise 2.11.4 Battleship Part 3: The Grid Class
Exercise 2.11.5 Battleship Part 4: Adding a Ship to the Grid
Exercise 2.11.6 Battleship Part 5: The Player Class
Exercise 2.11.7 Battleship Part 6: The Battleship Class
Exercise 2.11.8 Battleship Part 7: Finishing the Game
Exercise 2.11.9 Battleship Extensions
Badge 2.11.10 Battleship Badge
2.12 Unit Quiz
Quiz 2.12.1 Unit 5 - Data Structures
3. Final Project
3.1 Final Project
Free Response 3.1.1 Brainstorm
Free Response 3.1.2 Milestones
Exercise 3.1.3 Final Project
Badge 3.1.4 Final Project Badge
3.2 Intro Java Completed
Badge 3.2.1 Intro Java Badge