Java for Everyone, 3rd Edition offers comprehensive topical coverage, with varied examples and problems, application of visual component of fluid mechanics, and strong focus on effective learning. The text enables the gradual development of confidence in problem solving. Each important concept is introduced in easy-to understand terms before more complicated examples are discussed. This text is an unbound, three hole punched version.
Preface v
Special Features xxvi
1 Introduction 1
1.1 Computer Programs 2
1.2 The Anatomy of a Computer 3
1.3 The Java Programming Language 6
1.4 Becoming Familiar with Your Programming Environment 7
VE1 Compiling and Running a Program
1.5 Analyzing Your First Program 11
1.6 Errors 14
1.7 PROBLEM SOLVING Algorithm Design 15
The Algorithm Concept 16
An Algorithm for Solving an Investment Problem 17
Pseudocode 18
From Algorithms to Programs 18
HT1 Describing an Algorithm with Pseudocode 19
WE1 Writing an Algorithm for Tiling a Floor 21
VE2 Dividing Household Expenses
2 Fundamental Data Types 31
2.1 Variables 32
Variable Declarations 32
Number Types 34
Variable Names 35
The Assignment Statement 36
Constants 37
Comments 37
ST1 Numeric Types in Java 41
ST2 Big Numbers 42
2.2 Arithmetic 43
Arithmetic Operators 43
Increment and Decrement 43
Integer Division and Remainder 44
lsg