s
menu
menu
Login  |  Register  |  Media Kit  |  Press  |  Site Map  |  Contact Us Digg It! Post to Del.icio.us Bookmark using any social bookmark manager!  Increase font-sizeDecrease font-sizeRestore default font-sizes



 
AddThis Social Bookmark Button
Table of Contents: Small Java How to Program

1Introduction to Computers, the Internet and the World Wide Web 1
1.1Introduction 2
1.2What Is a Computer? 4
1.3Computer Organization 4
1.4Early Operating Systems 5
1.5Personal, Distributed and Client/Server Computing 6
1.6The Internet and the World Wide Web 6
1.7Machine Languages, Assembly Languages and High-Level Languages 7
1.8History of C and C++ 8
1.9History of Java 9
1.1Java Class Libraries 9
1.11FORTRAN, COBOL, Pascal and Ada 11
1.12BASIC, Visual Basic, Visual C++, C# and .NET 11
1.13Typical Java Development Environment 12
1.14Notes about Java and Small Java How to Program, Sixth Edition 15
1.15Test-Driving a Java Application 16
1.16Introduction to Object Technology and the UML 21
1.17Wrap-Up 26
1.18Web Resources 26
2Introduction to Java Applications 35
2.1Introduction 36
2.2First Program in Java: Printing a Line of Text 36
2.3Modifying Our First Java Program 43
2.4Displaying Text with printf 45
2.5Another Java Application: Adding Integers 47
2.6Memory Concepts 51
2.7Arithmetic 52
2.8Decision Making: Equality and Relational Operators 56
2.9Wrap-Up 60
   
3Introduction to Classes and Objects 72
3.1Introduction 73
3.2Classes, Objects, Methods and Instance Variables 73
3.3Declaring a Class with a Method and Instantiating an Object of a Class 75
3.4Declaring a Method with a Parameter 79
3.5Instance Variables, set Methods and get Methods 82
3.6Primitive Types vs. Reference Types 87
3.7Initializing Objects with Constructors 88
3.8Floating-Point Numbers and Type double 91
3.9(Optional) GUI and Graphics Case Study: Using Dialog Boxes 95
3.1Wrap-Up 98
4Control Statements: Part 1 106
4.1Introduction 107
4.2Algorithms 107
4.3Pseudocode 108
4.4Control Structures 108
4.5if Single-Selection Statement 111
4.6if else Double-Selection Statement 112
4.7while Repetition Statement 117
4.8Formulating Algorithms: Counter-Controlled Repetition 118
4.9Formulating Algorithms: Sentinel-Controlled Repetition 123
4.1Formulating Algorithms: Nested Control Statements 130
4.11Compound Assignment Operators 136
4.12Increment and Decrement Operators 137
4.13Primitive Types 139
4.14(Optional) GUI and Graphics Case Study: Creating Simple Drawings 140
4.15Wrap-Up 145
5Control Statements: Part 2 157
5.1Introduction 158
5.2Essentials of Counter-Controlled Repetition 158
5.3for Repetition Statement 160
5.4Examples Using the for Statement 164
5.5do while Repetition Statement 169
5.6switch Multiple-Selection Statement 170
5.7break and continue Statements 178
5.8Logical Operators 180
5.9Structured Programming Summary 186
5.1(Optional) GUI and Graphics Case Study: Drawing Rectangles and Ovals 191
5.11Wrap-Up 194
6Methods: A Deeper Look 204
6.1Introduction 205
6.2Program Modules in Java 206
6.3static Methods, static Fields and Class Math 207
6.4Declaring Methods with Multiple Parameters 210
6.5Notes on Declaring and Using Methods 214
6.6Method Call Stack and Activation Records 215
6.7Argument Promotion and Casting 215
6.8Java API Packages 217
6.9Case Study: Random-Number Generation 219
6.1Case Study: A Game of Chance (Introducing Enumerations) 224
6.11Scope of Declarations 229
6.12Method Overloading 232
6.13(Optional) GUI and Graphics Case Study: Colors and Filled Shapes 235
6.14Wrap-Up 237
7Arrays 252
7.1Introduction