Programming Books C Java PHP Python Learn more Browse Programming Books
Sams Teach Yourself Java in 24 Hours (Covering Java 7 and... and over one million other books are available for Amazon Kindle. Learn more

Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $6.05 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading Sams Teach Yourself Java in 24 Hours on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Sams Teach Yourself Java in 24 Hours (Covering Java 7 and Android) (6th Edition) (Sams Teach 24 Hours) [Paperback]

Rogers Cadenhead
3.5 out of 5 stars  See all reviews (31 customer reviews)

Buy New
$25.82 & FREE Shipping on orders over $35. Details
Only 3 left in stock.
Ships from and sold by Gift-wrap available.
In Stock.
Want it Friday, July 11? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student


Amazon Price New from Used from
Kindle Edition $15.39  
Paperback $25.82  
Books for Pragmatic Programmers
Find resources for various programming needs, including agile teams, programming languages, and the life of a programmer, in the Pragmatic Bookshelf.

Book Description

October 31, 2011 0672335751 978-0672335754 6
Sams Teach Yourself Java in 24 Hours, Sixth Edition
Covering Java 7 and Android Development

In just 24 lessons of one hour or less, you can learn how to create Java applications. Using a straightforward, step-by-step approach, popular author Rogers Cadenhead helps you master the skills and technology you need to create desktop and web programs, web services, and even an Android app in Java.

Full-color figures and clear step-by-step instructions visually show you how to program with Java.

Quizzes and Exercises at the end of each chapter help you test your knowledge.

Notes, Tips, and Cautions provide related information, advice, and warnings.

Learn how to

  • Set up your Java programming environment
  • Write your first working program in just minutes
  • Control program decisions and behavior
  • Store and work with information
  • Build straightforward user interfaces
  • Create interactive web programs
  • Use threading to build more responsive programs
  • Read and write files and XML data
  • Master best practices for object-oriented programming
  • Create flexible, interoperable web services with JAX-WS
  • Use Java to create an Android app
PART I: Getting Started
HOUR 1: Becoming a Programmer
HOUR 2: Writing Your First Program
HOUR 3: Vacationing in Java
HOUR 4: Understanding How Java Programs Work

PART II: Learning the Basics of Programming
HOUR 5: Storing and Changing Information in a Program
HOUR 6: Using Strings to Communicate
HOUR 7: Using Conditional Tests to Make Decisions
HOUR 8: Repeating an Action with Loops

PART III: Working with Information in New Ways

HOUR 9: Storing Information with Arrays
HOUR 10: Creating Your First Object
HOUR 11: Describing What Your Object Is Like
HOUR 12: Making the Most of Existing Objects

PART IV: Programming a Graphical User Interface
HOUR 13: Building a Simple User Interface
HOUR 14: Laying Out a User Interface
HOUR 15: Responding to User Input
HOUR 16: Building a Complex User Interface

PART V: Moving into Advanced Topics
HOUR 17: Creating Interactive Web Programs
HOUR 18: Handling Errors in a Program
HOUR 19: Creating a Threaded Program
HOUR 20: Reading and Writing Files

PART VI: Writing Internet Applications

HOUR 21: Reading and Writing XML Data
HOUR 22: Creating Web Services with JAX-WS
HOUR 23: Creating Java2D Graphics
HOUR 24: Writing Android Apps

PART VII: Appendixes
APPENDIX A: Using the NetBeans Integrated Development Environment
APPENDIX B: Where to Go from Here: Java Resources
APPENDIX C: This Book’s Website
APPENDIX D: Setting Up an Android Development Environment

Frequently Bought Together

Sams Teach Yourself Java in 24 Hours (Covering Java 7 and Android) (6th Edition) (Sams Teach 24 Hours) + Sams Teach Yourself Java in 21 Days (Covering Java 7 and Android) (6th Edition) + Head First Java, 2nd Edition
Price for all three: $79.22

Buy the selected items together

Editorial Reviews Review

More to Explore: See More Java Guides


Sams Teach Yourself Java in 24 Hours Sams Teach Yourself Java in 21 Days Java™ for Programmers Java Performance
Covering Java 7 and Android
Covering Java 7 and Android
Deitel Developer Series
Covering Latest Oracle and Third-Party Tools
Guide Type
Special Topic
Audience Level
Beginner to Intermediate
Beginner to Intermediate
Intermediate to Advanced
List Price
Publication Date
October, 2011
July, 2012
April, 2011
September, 2011
Deitel / Deitel
Hunt / John
Prentice Hall
Print Book
Kindle Book
Brief Description
An introduction to programming and Java; no previous programming experience required.
An introduction to Java, for readers with some previous programming experience.
A comprehensive guide to Java, for professional programmers new to Java, but experienced with other programming languages.
An authoritative guide to creating faster, more reliable applications, for intermediate to advanced programmers.

About the Author

Rogers Cadenhead is a writer, computer programmer, and web developer who has written more than 20 books on Internet-related topics, including Sams Teach Yourself Java in 21 Days. He maintains the Drudge Retort and other websites that receive more than 20 million visits a year. This book’s official website is at

Product Details

  • Series: Sams Teach 24 Hours
  • Paperback: 432 pages
  • Publisher: Sams Publishing; 6 edition (October 31, 2011)
  • Language: English
  • ISBN-10: 0672335751
  • ISBN-13: 978-0672335754
  • Product Dimensions: 9.1 x 7.5 x 0.9 inches
  • Shipping Weight: 1.4 pounds (View shipping rates and policies)
  • Average Customer Review: 3.5 out of 5 stars  See all reviews (31 customer reviews)
  • Amazon Best Sellers Rank: #298,859 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
20 of 20 people found the following review helpful
Format:Paperback|Verified Purchase
I found this to be a great book for those with prior programming experience in othe languages, but I'm not certain what the book's core audience is. The early chapters are a bit too simplistic for an experienced developer while the latter chapters might be overwhelming for someone without prior experience. At any rate, if you do have prior experience and work through the early chapters you will find this book valuable.

Other reviews mentioned that a few chapters in the middle were extra difficult and didn't seem to flow with the rest of the book. I did not notice this problem so either this was a problem corrected in the latest version of the book or they discussed topics I was already familiar with.

My main problem using the book was with the massive hour 24 that deals with Android development. Even though this book was written in 2011, I've already found the tools have been updated substantially and differ from what's described in the book. Usually it's easy enough to figure out what to do, unfortunately I've currently run into a progress-halting problem on pg 361. We are supposed to define the properties for some buttons, but the described properties dialog is nowhere to be found. To make matters worse I'm not sure if this is a problem with Eclipse (the development tool used in this package), the Android plugin, or something else. I have no idea how to figure out what's causing this problem, and it would be nice if the book's website had an update for problems like these. At any rate, it's not the book's problem (so I can't critique it for this) but it is definitely a problem for anyone attempting to use these tools to learn how to program.
Comment | 
Was this review helpful to you?
16 of 19 people found the following review helpful
5.0 out of 5 stars A Well Rounded Introduction to JAVA 7 December 20, 2011
If you want a well rounded introduction to JAVA 7, look no further. This book touches on all the things you would expect in an introduction to a programming language.

The book is broken down into six parts and a set of appendices. I have listed the chapters by part below.

Part I: Getting Started- Becoming a Programmer, Writing Your First Program, Vacationing in Java, and Understanding How Java Programs Work.

Part II: Learning the Basics of Programming- Storing and Changing Information in a Program, Using Strings to Communicate, Using Conditional Tests to Make Decisions, and Repeating an Action with Loops.

Part III: Working with Information in New Ways- Storing Information with Arrays, Creating Your First Object, Describing What Your Object is Like, and Making the Most of Existing Objects.

Part IV: Programming a Graphical User Interface- Building a Simple User Interface, Laying Out a User Interface, Responding to User Input, and Building a Complex User Interface.

Part V: Moving into Advanced Topics- Creating Interactive Web Programs, Handling Errors in a Program, Creating a Threaded Program, and Reading and Writing Files.

Part VI: Writing Internet Applications- Reading and Writing XML Data, Creating Web Services with JAX-WS, Creating Java2D Graphics with Xrender, and Writing Android Apps.

Appendixes- Using the NetBeans Integrated Development Environment, Where to Go from Here: Java Resources, and This Book's Website.

The downloadable code is very well organized and usable. The author's website also contains links to the JDK 7.0 and NetBeans 7.0.

I really like that the author chose to use NetBeans. I don't get to use that editor much, but I really like it.
Read more ›
Comment | 
Was this review helpful to you?
5 of 5 people found the following review helpful
4.0 out of 5 stars Good but 2 thing needs to be considered January 22, 2012
By howg
I think this is a decent book for Learning Java, however there's 2 issues that i have with this book:

1) My main issue with this book was that throughout this book the NetBeans Compiler was used then when it gets to the part about learning mobile phone programming you had to download the Eclipse IDE and Android SDK, I mean why not learn that with the Java Micro Edition that came with the NetBeans IDE like everything else in the book? Because now you gotta configure everything and make sure everything is set up right instead of using what you already have.

2) I feel that some understanding of a previous language should be known before opening this book because as it gets into more complex chapters without some understanding of another language it could be confusing for those learning how to program for the first time to correct some of the errors in the more advanced chapters. Aside from that everything else was very informative
Comment | 
Was this review helpful to you?
19 of 25 people found the following review helpful
1.0 out of 5 stars Great book if you already know Java December 31, 2011
Format:Paperback|Verified Purchase
This is a great book to use in order to learn Java in 24 hours. That is "If you already Know Java" or any other obeject oriented programming language! The author starts out well enough with basic programming protocols but when he gets to Object Oriented Programming, you may as well toss this book and find another that can actually explain in common language what is going on. The author assumes that you already know and understand all the arcane terminology and that you can assimilate what he is talking about. Too often the author trys to be cute with over the top goofy puns and analogies that just don't make the connection.
Was this review helpful to you?
8 of 10 people found the following review helpful
2.0 out of 5 stars 'semi-useless' May 15, 2012
By Vlad
Format:Paperback|Verified Purchase
I will say something which is not so `intuitive': I am glad the selling price of this book dropped so sharply since the time I've purchased it earlier this year. I hope the price tag continues sliding down reflecting this book real value which is contained somewhere within first half of it. I have to admit I was mostly interested in web services, creating interactive programs, reading /writing XML data etc. and working with corresponding exercises I've found that about 80% of them simply don't work. I've tried several times to ask the author for a hand - no response. I think the real problem with this book is it leaves a non-experienced programmer (that would be me) `dead puzzled' about what the problem might be and hence absolutely frustrated. Bad practice.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
3.0 out of 5 stars More sizzle than bacon
No book in the world can turn a complete novice into an Android developer. You could write a whole book (and there are several) just on Java core language syntax. Read more
Published 2 months ago by Kurt Guntheroth
5.0 out of 5 stars Great
Easy to follow and fun. Made a complex concept of Java much easier to grasp. A definite helper in programming
Published 3 months ago by Jeffry Sposito
5.0 out of 5 stars Perfect
This book is a great entry level Java learn at your own pace book. I have used it for reference.
Published 3 months ago by Adam M.
4.0 out of 5 stars Java is not simple ... this book is ok, but not great.
I've been reading several books on Java, and this one is pretty good. One nice thing is that it combines the lessons with an on-going application you are writing, but still it's a... Read more
Published 6 months ago by James F
4.0 out of 5 stars Good for total beginners
It is a fine book. It will take you through the basics but not further. Doesn't go into design patterns or give algorithm implementation. Read more
Published 7 months ago by Yair Daon
3.0 out of 5 stars Useful for Review
I already had a decent understanding of Java when I read this book. It's hard to cover all of the major concepts in such a small amount of space. Read more
Published 9 months ago by Adam Alonzi
3.0 out of 5 stars Book review
Book is a great way to learn the basic foundations of Java.

One or two of the sub topics in the chapters drift off. Read more
Published 10 months ago by AJ
2.0 out of 5 stars Sams Teach Yourself Java in 24 Hours
I was very disappointed. The positive part is that it is a good source of information on Java resources, actually I found the appendix part more useful than the book. Read more
Published 11 months ago by Dan1
1.0 out of 5 stars First few chapters are excellent...but that's it
I have no programming experience, which is why I bought this book. It claims to be one for those without experience. Read more
Published 13 months ago by C. Rogers
4.0 out of 5 stars good depth, good price
Beginning or refresher-coursing, this will suffice,
Per Rob Frost, for destruction so too will the ice! Read more
Published 13 months ago by J
Search Customer Reviews
Search these reviews only

What Other Items Do Customers Buy After Viewing This Item?


Have something you'd like to share about this product?
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for Similar Items by Category