Correlations

Introduction to Computing and Programming with Java: A Multimedia Approach 1st Edition ©2007

Mark Guzdial and Barbara Ericson

Mapping the Advanced Placement CS A Topics to Introduction to Computing and Programming with Java: A Multimedia Approach

Primitive types: int, double, boolean 2.3.1, 2.3.5
+ , -, *, /, %, ++, -- 2.3.1 for first + , -, *, /, %. Increment ++ and decrement -- are covered in 4.3
=, +=, -=, *=, /=, %= = in 2.4 and on. We don't cover the rest of these +=, -=, *=, /=, %=.
==, !=, <, <=, >, >= 2.3.5
&&, ||, ! and short-circuit evaluation We cover && in 6.4, && || and short-circuit evaluation in 6.8.2. We use ! first in 2.3.5.
(int), (double) 2.3.4
String concatenation 2.3.6
Escape sequences \", \\, \n inside strings 2.3.6
System.out.print, System.out.println 2.3.2 for println
1-dimensional arrays In chapters 4, 8, and 11
if, if/else, while, for, return If in 6.1, 6.8.3, 8.5.3. If and else in 6.2.3, 6.8.3, 8.4.1, and 8.5.3. While in 4.3.2, 4.4.2, 8.2.3, 8.5.2, 12.7.5. For-each in 4.3.1, 4.4.2, 8.2.3, and 8.5.2. General For in 4.3.7, 4.4.2, 8.3.4, and 8.5.2. Using return in 5.2.5, 5.3.3, and 9.6.2.
Modify existing classes, design classes Modify existing class from 3.5 on. Designing classes from 11 on.
public classes, private instance variables, public or private methods or constants Public methods from 3.5 on. Private methods in 10.6.3 and 13.2. Public classes from chapter 11 on. Private instance variables from chapter 11 on. Constants at the end of Chapter 4 (color) and 7.3.6.
static final class variables We don't explicitly cover this you can explain color constant with this. We do cover class fields in 4.2.
static methods 3.3.1, 10.5
null, this, super, super.method(args) Null in 2.4.4. This in 3.5, 4.3, 11.2.3. Super in 11.9.
Constructors and initialization of static variables Constructors in 11.2.5. We don't cover initialization of static variables but you could by adding a static nextId to the Student class.
Understand inheritance hierarchies. Design and implement subclasses. Modify subclass implementations and implementations of interfaces. Inheritance in 7.3.2, and 11.9. Design and implement subclasses in 11.9. Modify subclass implementations in 11.9. Implementations of interfaces as extra slides adding compareTo for Students.
Understand the concepts of abstract classes and interfaces. Design an interface. Abstract slides are covered in extra slides on comic strips. Interfaces are covered in 7.3.6. We don't cover designing interfaces.
Understand equals, ==, and != comparison of objects
Comparable.compareTo
We don't cover equals. But, it could easily be added when Strings are introduced. We cover == and != in 2.3.5. Comparable isn't covered but can be added when you create the Student class.
Conversion to supertypes and (Subtype) casts Upcasting and downcasting is covered in 13.3.2.
Package concept, import packageName.ClassName; Packages and importing are covered in 4.2 and 7.1.1
Exception concept, common exceptions Exceptions are in 12.3.2. NullPointerExceptions are covered in 12.3.2. You can easily cover other exceptions as they occur.
String, Math, Random, Object, ArrayList Strings are covered in 2.3.6, 2.4.4, 2.4.5 and 12.2. The Math class is covered in 3.3.1. Random is covered in 12.4.1. Object is covered in 3.4.2 and 12.2.2. ArrayList is in 12.3.3 and in additional slides on creating a SlideShow.
Wrapper classes (Integer, Double) 3.3.1

AP® is a trademark registered and/or owned by the College Board, which was not involved in the production of, and does not endorse, this site.