AP CSA Java Basics: Getting Started


AP Computer Science A Learning Objectives Explored in this Section
  • Java Primitive Types: int, double, boolean
  • Text output using System.out.print and System.out.println
  • Declaring and using variables and constants
  • Sequential and conditional execution
  • Evaluating numeric and Boolean expressions
  • Iteration using for and while loops
  • Developing appropriate test cases, including boundary cases
  • Error categories and techniques for identifying and correcting errors
  • Representation of non-negative integers in different bases
  • Implications of finite integer bounds

In-Class Documents and Lab Files

AssignmentDayContents
Cloud9 IDE Setup 01 Cloud9 Setup Instructions and Linux Terminal Command Quick Reference 
Notes: How Java Works 01 Process to create a Java program, Intro to the main method, and overview of the HelloWorld program  
Notes: Java Types and Variables 02 Primitive Types, Creating and Naming Variables, Intro to Strings and Constants 
Notes: Java Operators 02 Operators in Java, Mixed-Mode Arithmetic, Casting, and String Concatenation 
Notes: Assignment in Java 02 How assignment works in Java 
Programming Exercise: Paint.java 03 Java start file for the Paint program. Instructions are in the form of comments in the code 
Programming Exercise: Quadratic Formula Root Finder 04 Exercise Description 
Programming Exercise: Interest Calculator 04 Exercise Description 
Notes: Conditional Statements 05 Introduction to if, if-else, and if-else if-else statements 
Programming Exercise: BMR Calculator 06 Exercise Description 
Java Basics Review Sheet 08 Review Questions 
Java Basics Review Solutions 08 Solutions to the Java Basics Review Sheet 
Showing 12 items from page AP Computer Science Intro and Using Objects Lab Files sorted by Assignment Number. View more »