Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 2.9 Wrapper Classes: Integers and Doubles

Description

In this lesson, students will learn how to convert primitive types to object types using a wrapper class. They will learn how Java automatically converts types using autoboxing and unboxing. This lesson corresponds with AP Computer Science A topic 2.8.


Objective

Students will be able to:

  • Create Integer and Double objects for wrapper classes
  • Call Integer and Double methods for wrapper classes