
3
CHAPTER
Object-Oriented Programming,
Part 1: Using Classes
Introduction
3.1 Class Basics and Benefits
3.2 Creating Objects Using Constructors
3.3 Calling Methods
3.4 Using Object References
3.5 Programming Activity 1: Calling
Methods
3.6 The Java Class Library
3.7 The String Class
3.8 Formatting Output with the Decimal-
Format Class
3.9 Generating Random Numbers with the
Random Class
3.10 Input from the Console Using the Scanner
Class
3.11 Calling Static Methods and Using Static
Class Variables
3.12 Using System.in and System.out
3.13 The Math Class
3.14 Formatting Output with the Number-
Format Class
3.15 The Integer, Double, and Other Wrapper
Classes
3.16 Input ...