Java in Easy Steps

Java in Easy Steps

by Mike McGrath

Paperback(Third Edition)

$12.44 $14.99 Save 17% Current price is $12.44, Original price is $14.99. You Save 17%. View All Available Formats & Editions

Product Details

ISBN-13: 9781840783469
Publisher: In Easy Steps Limited
Publication date: 02/28/2008
Series: In Easy Steps
Edition description: Third Edition
Pages: 192
Product dimensions: 8.88(w) x 7.38(h) x (d)

About the Author

Mike McGrath gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. Mike is an established In Easy Steps author with several guides to his credit.

Table of Contents

Getting started     7
Introduction     8
Installing the JDK     10
Writing a first Java program     12
Compiling & running programs     14
Creating a variable     16
Recognizing data types     18
Creating constants     20
Adding comments     21
Troubleshooting problems     22
Summary     24
Performing operations     25
Doing arithmetic     26
Assigning values     28
Comparing values     30
Assessing logic     32
Examining conditions     34
Setting precedence     36
Escaping literals     38
Working with bits     40
Summary     42
Making statements     43
Branching with if     44
Branching alternatives     46
Switching branches     48
Looping for     50
Looping while true     52
Doing do-while loops     54
Breaking out of loops     56
Returning control     58
Summary     60
Directing values     61
Casting typevalues     62
Creating variable arrays     64
Passing an argument     66
Passing multiple arguments     68
Looping through elements     70
Changing element values     72
Adding array dimensions     74
Catching exceptions     76
Summary     78
Manipulating data     79
Exploring Java classes     80
Doing mathematics     82
Rounding numbers     84
Generating random numbers     86
Managing strings     88
Comparing strings     90
Searching strings     92
Manipulating characters     94
Summary     96
Creating classes     97
Forming multiple methods     98
Understanding program scope     100
Forming multiple classes     102
Extending an existing class     104
Creating an object class     106
Producing an object instance     108
Encapsulating properties     110
Constructing object values     112
Summary     114
Importing functions     115
Handling files      116
Reading console input     118
Reading files     120
Writing files     122
Sorting array elements     124
Managing dates     126
Formatting numbers     128
Calculating currency     130
Summary     132
Building interfaces     133
Creating a window     134
Adding push buttons     136
Adding labels     138
Adding text fields     140
Adding item selectors     142
Adding radio buttons     144
Changing appearance     146
Arranging components     148
Summary     150
Recognizing events     151
Listening for events     152
Generating events     153
Handling button events     154
Handling item events     156
Reacting to keyboard events     158
Responding to mouse events     160
Announcing messages     162
Requesting input     164
Playing sounds     166
Summary     168
Deploying programs     169
Methods of deployment     170
Distributing programs      172
Building archives     174
Deploying applications     176
Enabling Web Start     178
Producing applets     180
Converting web pages     182
Deploying applets     184
Summary     186
Index     187

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

Java in Easy Steps 4.4 out of 5 based on 0 ratings. 7 reviews.
Guest More than 1 year ago
This book answered some basic questions and I didn't have to go digging through piles of books. Not overwhelming and examples are layed out nicely. Doesn't get any easier than this folks!
Guest More than 1 year ago
The sequencing is excellent. The sections are short and succinct. The examples are purposeful. They are short and to the point, making it simple to follow for the beginner. The topics are excellent review for the more advanced. It is a good book for pre-AP computer testing review.
Guest More than 1 year ago
This book helped me through a Java course. I recommend this book as a refresher and for beginners.
Guest More than 1 year ago
This is not a cover everything reference book... It's more just an introduction to the language. I found it was just enough to kick start me and point me in the right direction, without being overwhelming like a 600 page reference book. If you are looking for an advanced book on every little function of Java this isn't it. If you are looking to get started like I was this is perfect.
Guest More than 1 year ago
With this book, I find myself memorizing more code. The examples are just big enough to allow improvisation. In a short time, I could write hard to remember syntax without a reference. It's a keeper and well worth the $10 bucks. If only this were expanded to cover advanced Java topics.
Guest More than 1 year ago
This book is the best way to get you on track for COMPUTER PROGRAMMING. Each chapter is carefully divided into different sections, with inumerable examples to help guide you through the process. The pages abound with tips and comprehensive methodology, including a personal Author's Box, which describes some of the cool things he does during writing this book (though, frankly, gross).The author's language is clear and concise, and is written for all audiences, whether beginner or profesional. It is a great reference for all who are expanding their computer knowledge. ROCK ON!
Anonymous More than 1 year ago
This book is a great intro for a 5th grader who has no programming experience. IF THEY ARE VERY VERY PATIENT. AND A SLOW LEARNER. I am an old timer hack programmer, and found this book difficult to read because of how far it was oversimplified. It seems like the target audience is about 5th grade. That's fine. Except THERE IS NOT ONE EXAMPLE TYPED OUT IN ITS ENTIRETY after the first one. (And the first one is a luxury, because they provided a screen shot!) Every single example has instructions on how to type in the code, and it's out of sequence. Here's an example, from page 46, which I chose at random: //-----------------page 46 quote starts here. (Indents are stripped by html, not reviewer.) (1) Start a new program named "Else" containing the standard main method class Else { public static void main ( String[] args) {} } (2) Between the curly brackets of the main method, insert this line to declare and initialize an integer vairable named hrs int hrs = 11; (3) Insert this simple conditional test, which executes a single statement when the value of hte hrs vairable is below 13 if( hrs < 13) { system.out.println("good morning: " + hrs); } (4) Save the program as Else.java then compile and run the program to see the statement get executed. //-----------------page 46 quote ends here. Ok, now this format was fine for the first chapter. It helps a newbie get into the habit of typing out matching brackets while they start new code. It would likely be generous on the second chapter. But by the third, it's monotonous, tedious, and a real pain to keep reading the same garbage over and over, repeatedly, redundantly with excessive repetition[sic]. So, this tiny program takes up over 50% of a full page, and it's the 15th example, supposedly after the reader has already learned how to enter programs. This book could easily cover the same material with greater clarity, and not lose one bit of comprehension. All they had to do was show some actual code as it is used. The concept of COMMENTS were introduced on page 21, but I could not find one code comment after the introduction. I randomly chose to look at ch 5 in the downloads, to see if they comment the code there. I selected Lottery.java... Yes! There are three comments. Are they in the book? NO! But I had to look in the index to FIND the page with the example it, because there is a TYPO, and this example literally does not exist in the book. They named it Random in the book. And no, there is not a list of programs listing their page number. (And with poorly formatted programs, it's not easy to find them.) I wanted this book for a quick overview for switching from C to Java. I ended up buying another book to do the job. The Easy Steps publisher was overly concerned with keeping a 2-page lesson format, and forced the author to fill in the space with useless garbage. It would have been better had they filled it with pictures, and left the code readable with comments as needed. The one thing this book has going for it is that it has java programming spelled out very simply so kids can understand it. However, the code format is likely to lead to skipping ahead and missing information. Typos can also make it hard to match files with page numbers, and there was no errata on the publishers site. This book would require an intelligent 5th grader, or a mentor to help him. And lots of patients to wade through the poor format.