Please enable JavaScript to use CodeHS

Tennessee Coding II

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

3.1 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

3.2 Method Signatures

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

3.3 Objects: Instances of Classes

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

3.4 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

3.5 Calling Class Methods

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

3.6 Calling Instance Methods

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

3.7 Math Class

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

3.8 Using Objects and Methods Quiz

  • Unit Quiz: Using Objects and Methods

Courses that include this module