Preface

The creation of this book has provided me, Mike McGrath, a welcome opportunity to update my previous books on Java programming with the latest techniques. All examples I have given in this book demonstrate Java features supported by current compilers on both Windows and Linux operating systems, and the book’s screenshots illustrate the actual results produced by compiling and executing the listed code, or by implementing code snippets in the Java shell.

Conventions in this book

In order to clarify the code listed in the steps given in each example, I have adopted certain colorization conventions. Components of the Java language itself are colored blue; programmer-specified names are red; numeric and string values are black; and comments are green, like this:

// Store then output a text string value.

String message = “Welcome to Java programming!” ;

System.out.println( message ) ;

Additionally, in order to identify each source code file described in the steps, a colored icon and file name appears in the margin alongside the steps, like these:

image

App.java

image

App.class

image

App.jar

image

App.xml

Grabbing the source code

For convenience, I have placed source code files from the examples featured in this book into a single ZIP archive. You can obtain the complete archive by following these easy steps:

imageBrowse to www.ineasysteps.com then navigate to Free Resources and choose the Downloads section

imageFind Java in easy steps, 6th Edition in the list, then click on the hyperlink entitled All Code Examples to download the archive

imageNow, extract the archive contents to any convenient location on your computer

I sincerely hope you enjoy discovering the programming possibilities of Java and have as much fun with it as I did in writing this book.

Mike McGrath