Please enable JavaScript to use CodeHS

AP Computer Science A (Cortado)

Using Objects and Methods

Students learn the fundamentals of writing and running Java programs, including how to use variables, data types, expressions, and input/output. They are also introduced to classes, and learn how to create objects and call methods, including those from built-in classes such as Math and String.

Lessons

1.1 Introduction to Algorithms, Programming, and Compilers

  • Introduction to Algorithms
  • Real World Algorithms
  • Basic Java Program Structure
  • Live Coding: The CodeHS IDE
  • Basic Program Structure and Print Statements
  • +9 more

1.2 Variables and Data Types

  • Variables and Primitive Data Types (Part 1)
  • Variables and Primitive Data Types (Part 2)
  • Voyager Mission in Variables
  • Exploration: Social Media Variables
  • Variables and Primitive Data Types
  • +8 more

1.3 Expressions and Output

  • Literals and Escape Sequences
  • println and print
  • Improved Signature
  • Debugging: Escape Sequences
  • Literals and Escape Sequences
  • +8 more

1.4 Assignment Statements and Input

  • Assignment Statements
  • Pet Supplies Calculator
  • Assignment Statements
  • Beauty Product Checkout
  • Freely Falling Bodies
  • +7 more

1.5 Casting and Range of Variables

  • Casting
  • Casting Example
  • Casting Order of Operations
  • Exploration: Rounding Using Casting
  • Casting
  • +5 more

1.6 Compound Assignment Operators

  • Compound Assignment Operators
  • Coffee Shop Rewards
  • Compound Assignment Summary
  • Compound Assignment Operators
  • Basketball Stats Simplification
  • +3 more

1.7 Application Program Interface (API) and Libraries

  • Application Program Interface and Libraries
  • Live Coding: Libraries and Methods
  • Libraries Are Wonderful
  • APIs and Libraries
  • Navigating an API
  • +3 more

1.8 Documentation with Comments

  • Documentation with Comments
  • Exploration: Effective Comments
  • Comments
  • Bank Account Comments
  • Comments for Debugging
  • +5 more

1.9 Method Signatures

  • Method Signatures
  • Methods or No Methods
  • Parts Work
  • Methods
  • Exploration: Changing a Mystery Method
  • +4 more

1.10 Calling Class Methods

  • Calling Class Methods
  • Basic Calculator
  • Exploration: Message Logger
  • Class Methods
  • Debugging: Converter
  • +2 more

1.11 Math Class

  • Math Class
  • Math Class Methods
  • Exploring the Math Class API
  • Setting the Random Range
  • Geometry 101
  • +1 more

1.12 Objects: Instances of Classes

  • Objects: Instances of Classes
  • Car Class
  • Exploration: Classes vs Objects
  • Objects: Instances of Classes
  • Many String Objects
  • +3 more

1.13 Object Creation and Storage (Instantiation)

  • Object Creation and Storage (Part 1)
  • Object Creation and Storage (Part 2)
  • Printing Objects
  • The Student Class
  • Exploration: Using the Rectangle Class
  • +3 more

1.14 Calling Instance Methods

  • Calling Instance Methods
  • Expanded Rectangle Class
  • Instance Methods
  • Exploration: Data Points
  • Balloons
  • +1 more

1.15 String Manipulation

  • String Concatenation
  • Museum Inventory
  • Concatenating Primitives
  • Madlibs
  • Concatenation
  • +9 more

1.16 Mid-Unit Assessment

  • Using Objects and Methods -- Mid-Unit MCQ
  • Using Objects and Methods -- Mid-Unit FRQ

1.17 End of Unit Assessment

  • Using Objects and Methods -- Unit MCQ
  • Using Objects and Methods -- Unit FRQ #1
  • Using Objects and Methods -- Unit FRQ #2

Courses that include this module