Please enable JavaScript to use CodeHS

Points

Activity Points
Classes and Object-Oriented Programming
1.1 Introduction to Classes and Objects
1.1.1 What is a Class? 1
1.1.2 Quiz: Classes and Objects 5
1.1.3 The Rectangle Class 1
1.1.4 The Point Class 1
1.1.5 The Student Class 1
1.1.6 Using the Rectangle Class 5
1.1.7 Calling A Method 5
1.1.8 Using the Point Class 5
1.1.9 Using the Student Class 5
1.2 Classes vs. Objects
1.2.1 Classes and Objects 1
1.2.2 Classes vs. Objects vs. Instances 5
1.2.3 Classes, Objects, and Instances 1
1.2.4 Creating Rectangle Objects 1
1.2.5 Text Messages 5
1.3 Using a Class as a Client
1.3.1 How to Use a Class 1
1.3.2 Quiz: Client of a Class 5
1.3.3 Using the Rectangle Class as a Client 1
1.3.4 Using the Randomizer Class as a Client 1
1.3.5 Coin Flips 5
1.3.6 Longest Streak 5
1.3.7 Testing the GeoLocation Class 1
1.3.8 How Far Away is ...? 5
1.4 Writing Classes
1.4.1 Constructors 1
1.4.2 Quiz: Constructors 5
1.4.3 Student Constructor 1
1.4.4 Rectangle Constructor 1
1.4.5 Triangle Class: Constructor 5
1.4.6 Rectangle toString 1
1.4.7 Student toString 1
1.4.8 toString for Flowers 5
1.4.9 Instance Variables for Your Dog 5
1.4.10 Student GPA Field 5
1.4.11 Free Response: What instance variables? 5
1.4.12 Pizza Time! 5
1.4.13 Fractions 5
1.5 Writing Classes and Instance Methods
1.5.1 Writing Instance Methods 1
1.5.2 Quiz: Writing Methods 5
1.5.3 Area of a Rectangle 1
1.5.4 Moving a Point 1
1.5.5 Writing getPerimeter() 5
1.5.6 Honors Students 5
1.5.7 The Full Triangle Class 5
1.5.8 Batting Average 5
1.5.9 Distance in Kilometers 5
1.6 Getter and Setter Methods
1.6.1 Getter and Setter Methods 1
1.6.2 Quiz: Getter and Setter Methods 5
1.6.3 Rectangle Getter Methods 1
1.6.4 Student Getter Methods 1
1.6.5 Text Messages Getter Methods 5
1.6.6 Fractions Getter/Setter Methods 5
1.6.7 Full Fraction Class 5
1.7 Class Methods and Class Variables
1.7.1 Static Methods and Variables (Class Methods and Class Variables) 1
1.7.2 Quiz: Static Methods 5
1.7.3 Student Class Variables and Methods 1
1.7.4 Using the Math Class 1
1.7.5 Using Randomizer 1
1.7.6 Static Variables: Circle 1
1.7.7 The Unit Circle 5
1.7.8 How Many Players in the Game? 5
1.7.9 Circle Area, another way 5
1.7.10 Rock, Paper, Scissors: Get Winner 5
1.7.11 Rock, Paper, Scissors! 5
1.8 Method Overloading
1.8.1 Method Overloading 1
1.8.2 Method Overloading Quiz 5
1.8.3 Sum Method Overloading 1
1.8.4 Constructor Overloading 1
1.8.5 Product Method Overloading 5
1.9 Local Variables and Scope
1.9.1 Local Variables and Scope 1
1.9.2 Local Variables and Scope Quiz 5
1.9.3 Instance Variable Scope 1
1.9.4 Local Variable Scope 1
1.9.5 Variable Shadowing 1
1.9.6 Which Variables Exist? 5
1.10 Key Terms for Classes
1.10.1 Key Terms for Classes 1
1.10.2 Quiz: This Keyword 5
1.10.3 Rectangles and this 1
1.10.4 Batteries 5
1.10.5 Write Your Own CodeHS 5
1.11 Objects vs Primitives
1.11.1 Objects vs Primitives 1
1.11.2 Objects vs Primitives Quiz 5
1.11.3 Comparing Rectangles 1
1.11.4 Changing Dogs 1
1.11.5 Null Pointer Exception 1
1.11.6 Objects vs Primitives 5
1.11.7 Comparing Circles 5
1.12 Inheritance
1.12.1 Inheritance 1
1.12.2 Quiz: Subclasses and Superclasses 5
1.12.3 Square is a Rectangle 1
1.12.4 Finding The Perimeters 5
1.13 Class Design and Abstract Classes
1.13.1 Class Design and Abstract Classes 1
1.13.2 Quiz: Class Design 5
1.13.3 The Shape Hierarchy 1
1.13.4 Classes for Dessert 1
1.13.5 Clothing Store 5
1.14 Polymorphism
1.14.1 Polymorphism 1
1.14.2 Quiz: Polymorphism 5
1.14.3 Animal Sounds 1
1.14.4 Shape Areas 1
1.14.5 Fun with Solids 10
1.15 Interfaces
1.15.1 Interfaces 1
1.15.2 Quiz: Interfaces 5
1.15.3 Comparable Interface 1
1.15.4 Summable Interface 1
1.15.5 Fraction is Comparable 5
1.15.6 City is Summable 5
1.15.7 Classes and Object-Oriented Programming Badge 1
1.16 Unit 4 Quiz
1.16.1 Unit 4 - Classes and Object-Oriented Programming 25
Data Structures
2.1 What are Data Structures?
2.1.1 What are Data Structures? 1
2.1.2 Quiz: Data Structures 5
2.1.3 Data Structures Everywhere 4
2.2 Introduction to Arrays
2.2.1 Introduction to Arrays 1
2.2.2 Quiz: Arrays 5
2.2.3 Making an Array 1
2.2.4 Make an Empty Array 1
2.2.5 Indexing Into an Array 1
2.2.6 Our First Array 5
2.2.7 Array Length 5
2.2.8 Last Element in Array 5
2.3 Using Arrays
2.3.1 Using Arrays 1
2.3.2 Quiz: Using Arrays 5
2.3.3 Iterating Over an Array 1
2.3.4 Sum Array 1
2.3.5 Array Out of Bounds 1
2.3.6 Print Array 5
2.3.7 Print Odd Array Indices 5
2.3.8 Find the Minimum Index 5
2.3.9 Classroom Example 1
2.3.10 Exam Scores 1
2.3.11 Array References 1
2.3.12 Find the Median 5
2.3.13 Top Student 5
2.4 ArrayList Methods
2.4.1 ArrayLists 1
2.4.2 Quiz: ArrayList 5
2.4.3 Hello World ArrayList 1
2.4.4 ArrayList and Java Primitives 1
2.4.5 ArrayList Size Method 1
2.4.6 Get First Element 5
2.4.7 Reading List 1
2.4.8 Texting in Class 1
2.4.9 Road Trip! 5
2.5 Arrays vs ArrayLists
2.5.1 Arrays vs ArrayLists 1
2.5.2 Quiz: Arrays vs ArrayList 5
2.5.3 Expanding Array 1
2.5.4 Improving Expanding Array 5
2.5.5 Array vs ArrayList 1
2.6 The List Interface
2.6.1 The List Interface 1
2.6.2 The List Interface Quiz 5
2.6.3 Reverse the List 1
2.6.4 Summer Reading 7
2.7 2D Arrays (Matrices or Grids)
2.7.1 2D Arrays 1
2.7.2 Quiz: 2D Arrays 5
2.7.3 Nested Loops 1
2.7.4 Ice Cream Combos 5
2.7.5 First 2D Array 1
2.7.6 Initializing a 2D Array 1
2.7.7 The Matrix 1
2.7.8 Sum Rows in a Matrix 7
2.8 HashMaps
2.8.1 HashMaps 1
2.8.2 Quiz: HashMaps 5
2.8.3 The Phonebook 1
2.8.4 Word Counts 10
2.9 Binary
2.9.1 Number Systems 1
2.9.2 Number Systems Quiz 5
2.9.3 Converting Octal to Decimal 1
2.9.4 Converting Binary to Decimal 7
2.9.5 Using Binary 1
2.9.6 Using Binary Quiz 5
2.9.7 Integer Limits 1
2.9.8 Binary Translator 7
2.10 Writing BlackJack
2.10.1 The Card Class 1
2.10.2 The Card Class 1
2.10.3 The Deck Class 1
2.10.4 The Deck Class 1
2.10.5 The Hand Class 1
2.10.6 The Hand Class 1
2.10.7 The Blackjack Class 1
2.10.8 The Blackjack Game 1
2.10.9 Improving Blackjack 10
2.10.10 Data Structures Exercises Badge 1
2.11 Battleship
2.11.1 Battleship Demo 1
2.11.2 Battleship Part 1: The Ship Class 5
2.11.3 Battleship Part 2: The Location Class 5
2.11.4 Battleship Part 3: The Grid Class 7
2.11.5 Battleship Part 4: Adding a Ship to the Grid 6
2.11.6 Battleship Part 5: The Player Class 5
2.11.7 Battleship Part 6: The Battleship Class 5
2.11.8 Battleship Part 7: Finishing the Game 10
2.11.9 Battleship Extensions 7
2.11.10 Battleship Badge 1
2.12 Unit Quiz
2.12.1 Unit 5 - Data Structures 25
Final Project
3.1 Final Project
3.1.1 Brainstorm 5
3.1.2 Milestones 5
3.1.3 Final Project 10
3.1.4 Final Project Badge 1
3.2 Intro Java Completed
3.2.1 Intro Java Badge 1
Algorithms and Recursion
4.1 What is an Algorithm?
4.1.1 What is an Algorithm? 1
4.1.2 Every Day Algorithms 5
4.2 Linear Search
4.2.1 Linear Search 1
4.2.2 Linear Search 1
4.2.3 Linear Search on ArrayList 5
4.2.4 Gradebook FRQ 1
4.3 Binary Search
4.3.1 Binary Search 1
4.3.2 Binary Search 2
4.3.3 Binary Search 1
4.3.4 Comparing Binary Search and Linear Search 5
4.3.5 Binary Search Badge 1
4.4 Selection Sort
4.4.1 Selection Sort 1
4.4.2 Selection Sort 1
4.4.3 Selection Sort 1
4.4.4 Visualizing Algorithms 1
4.4.5 Explore Selection Sort 5
4.5 Insertion Sort
4.5.1 Insertion Sort 1
4.5.2 Insertion Sort 1
4.5.3 Visualizing Algorithms 1
4.5.4 Insertion Sort 1
4.5.5 Explore Insertion Sort 5
4.6 Advanced: Recursion
4.6.1 Recursion 1
4.6.2 Factorial 1
4.6.3 Factorial Unit Test Example 5
4.6.4 Recursion Walkthrough 5
4.6.5 Recursion Example 5
4.6.6 Recursive Binary Search 5
4.6.7 Fibonacci Recursive 1
4.6.8 Bacteria Cultures 10
4.6.9 Recursive Minimum 10
4.7 Mergesort
4.7.1 Mergesort 1
4.7.2 Visualizing Algorithms 1
4.7.3 Merge Sort 1
4.7.4 Explore Merge Sort 5
4.7.5 Algorithms Badge 1
4.8 Informal Code Analysis
4.8.1 Informal Code Analysis 1
4.8.2 Informal Code Analysis 5
4.8.3 Loop Execution Count 1
4.8.4 While Loop Time 1
4.8.5 For Loop Time 1
4.8.6 Time Comparisons 5
4.8.7 Improving isChar Speed 5
4.8.8 Improving isChar Speed Check 1
4.8.9 isChar Speed Reflection 5
4.9 Algorithms and Recursion Quiz
4.9.1 Algorithms and Recursion Quiz 25
Project: Pokemon Simulation
5.1 Pokemon Simulation
5.1.1 Pokemon Demo 1
5.1.2 The Move Class 10
5.1.3 The Pokemon Class 10
5.1.4 Adding Pokemon Images 10
5.1.5 Pokemon can Attack! 10
5.1.6 The PokemonTrainer Class 10
5.1.7 The PokemonSimulation Class 10
5.1.8 Finishing the Battle 10
5.1.9 Adding the ComputerTrainer 10
5.1.10 Pokemon Extensions 10
5.1.11 Pokemon Badge 0
Project: Mad Libs
6.1 Mad Libs
6.1.1 Mad Libs Demo 1
6.1.2 Collecting the Placeholders 10
6.1.3 Getting User Input 10
6.1.4 Replacing a Placeholder 10
6.1.5 Generating the Mad Lib 10
6.1.6 Write your own Mad Lib! 10
6.1.7 Mad Lib Extensions 10
Java Outside of CodeHS
7.1 Java Outside of CodeHS
7.1.1 Java Outside of CodeHS 1
7.1.2 Hello World in Eclipse 1
7.1.3 Hello World in BlueJ 1
7.1.4 Hello World in Terminal 1
7.1.5 Java main vs run 1
7.1.6 Using the main Method in Eclipse 1
7.1.7 Using the main Method in BlueJ 1
7.1.8 Using the main Method in the Terminal 1
7.1.9 Hello World with main Method 1
7.1.10 Getting User Input 1
7.1.11 Using Scanner for Input 1
Project: Quiz Creation
8.1 Quiz Creation
8.1.1 Quiz Demo 1
8.1.2 The Question Class 10
8.1.3 Question toString 10
8.1.4 The Quiz Class 10
8.1.5 Using the QuizFileReader Class 10
8.1.6 Constructing Quizzes from Files 10
8.1.7 The QuizRunner Class 10
8.1.8 Write your own Quiz! 10
8.1.9 Quiz Extensions 10
Computer Ethics
9.1 Computer Ethics
9.1.1 Student Honor Code 0
9.1.2 Computing Ethics 0
9.1.3 Self Driving Cars 5
Java Pretest
10.1 Java Pretest
10.1.1 About the Pretest 1
10.1.2 Mindsets 0
10.1.3 Knowledge & Skills: Java 0
Java Posttest
11.1 Java Posttest
11.1.1 About the Posttest 1
11.1.2 Mindsets 0
11.1.3 Java Knowledge & Skills 0