Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro - 2019 AP CSA Framework)

Primitive Types

Students learn about writing the main method and start to call preexisting methods to produce output. Students learn about three built-in data types and learn how to create variables, store values, and interact with those variables using basic operations.

Lessons

1.1 Why Programming? Why Java?

  • Printing in Java
  • Printing in Java
  • Hello World
  • Printing Multiple Lines
  • Welcome Program
  • +4 more

1.2 Variables and Data Types

  • Variables and Types
  • Variables and Types
  • Variables
  • Using Final
  • Our First Integer
  • +5 more

1.3 Expressions and Assignment Statements

  • Arithmetic Expressions
  • Arithmetic Expressions
  • Calculator
  • Temperature Conversion
  • Tricky Java
  • +3 more

1.4 Compound Assignment Operators

  • Compound Assignment Operators
  • Compound Assignment Operators
  • All Functions Calculator
  • Increase/Decrease by 1
  • Work Shift
  • +1 more

1.5 User Input

  • User Input
  • User Input Quiz
  • Using the Scanner Class
  • Increase/Decrease by 1 (User Input)
  • int Before String
  • +4 more

1.6 Casting and Ranges of Variables

  • Casting
  • Casting
  • Casting
  • Casting to an Int
  • Casting to a Double
  • +6 more

1.7 Primitive Types Quiz

  • Primitive Types Quiz