| |
| |
| |
Introduction to Computers and Java | |
| |
| |
| |
Introduction | |
| |
| |
| |
Why Program? | |
| |
| |
| |
Computer Systems: Hardware and Software | |
| |
| |
| |
Programming Languages | |
| |
| |
| |
What Is a Program Made Of? | |
| |
| |
| |
The Programming Process | |
| |
| |
| |
Object-Oriented Programming Review Questions and Exercises Programming Challenge | |
| |
| |
| |
Java Fundamentals | |
| |
| |
| |
The Parts of a Java Program | |
| |
| |
| |
The print and println Methods, and the Java API | |
| |
| |
| |
Variables and Literals | |
| |
| |
| |
Primitive Data Types | |
| |
| |
| |
Arithmetic Operators | |
| |
| |
| |
Combined Assignment Operators | |
| |
| |
| |
Conversion Between Primitive Data Types | |
| |
| |
| |
Creating Named Constants with final | |
| |
| |
| |
The String Class | |
| |
| |
| |
Scope | |
| |
| |
| |
Comments | |
| |
| |
| |
Programming Style | |
| |
| |
| |
Reading Keyboard Input | |
| |
| |
| |
Dialog Boxes | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
Decision Structures | |
| |
| |
| |
The if Statement | |
| |
| |
| |
The if-else Statement | |
| |
| |
| |
The if-else-if Statement | |
| |
| |
| |
Nested if Statements | |
| |
| |
| |
Logical Operators | |
| |
| |
| |
Comparing String Objects | |
| |
| |
| |
More about Variable Declaration and Scope | |
| |
| |
| |
The Conditional Operator (Optional) | |
| |
| |
| |
The switch Statement | |
| |
| |
| |
Creating Objects with the DecimalFormat Class | |
| |
| |
| |
The printf Method (Optional) | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
Loops and Files | |
| |
| |
| |
The Increment and Decrement Operators | |
| |
| |
| |
The while Loop | |
| |
| |
| |
Using the while Loop for Input Validation | |
| |
| |
| |
The do-while Loop | |
| |
| |
| |
The for Loop | |
| |
| |
| |
Running Totals and Sentinel Values | |
| |
| |
| |
Nested Loops | |
| |
| |
| |
The break and continue Statements (Optional) | |
| |
| |
| |
Deciding Which Loop to Use | |
| |
| |
| |
Introduction to File Input and Output | |
| |
| |
| |
The Random Class | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
Methods | |
| |
| |
| |
Introduction to Methods | |
| |
| |
| |
Passing Arguments to a Method | |
| |
| |
| |
More About Local Variables | |
| |
| |
| |
Returning a Value from a Method | |
| |
| |
| |
Problem Solving with Methods | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
A First Look at Classes | |
| |
| |
| |
Classes and Objects | |
| |
| |
| |
Instance Fields and Methods | |
| |
| |
| |
Constructors | |
| |
| |
| |
Overloading Methods and Constructors | |
| |
| |
| |
Scope of Instance Fields | |
| |
| |
| |
Packages and import Statements | |
| |
| |
| |
Focus on Object-Oriented Design: Finding the Classes and Their Responsibilities | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
A First Look at GUI Applications | |
| |
| |
| |
Introduction | |
| |
| |
| |
Creating Windows | |
| |
| |
| |
Equipping GUI Classes with a main Method | |
| |
| |
| |
Layout Managers | |
| |
| |
| |
Radio Buttons and Check Boxes | |
| |
| |
| |
Borders | |
| |
| |
| |
Focus on Problem Solving: Extending Classes from JPanel | |
| |
| |
| |
Using Console Output to Debug a GUI Application | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
Arrays and the ArrayList Class | |
| |
| |
| |
Introduction to Arrays | |
| |
| |
| |
Processing Array Contents | |
| |
| |
| |
Passing Arrays as Arguments to Methods | |
| |
| |
| |
Some Useful Array Algorithms and Operations | |
| |
| |
| |
Returning Arrays from Methods | |
| |
| |
| |
String Arrays | |
| |
| |
| |
Arrays of Objects | |
| |
| |
| |
The Sequential Search Algorithm | |
| |
| |
| |
Two-Dimensional Arrays | |
| |
| |
| |
Arrays with Three or More Dimensions | |
| |
| |
| |
The Selection Sort and the Binary Search Algorithms | |
| |
| |
| |
Command-Line Arguments and Variable-Length Argument Lists | |
| |
| |
| |
The ArrayList Class | |
| |
| |
| |
Common Errors to Avoid Review Questions and Exercises Programming Challenges | |
| |
| |
| |
A Second Look at Classes and Objects | |
| |
| |
| |
Static C | |