Sams Teach Yourself Java in 24 Hours (Covering Java 7 and... and over 2 million other books are available for Amazon Kindle . Learn more

Sign in to turn on 1-Click ordering.
Trade in Yours
For a £3.58 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

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) (Sams Teach 24 Hours) [Paperback]

Rogers Cadenhead
3.8 out of 5 stars  See all reviews (21 customer reviews)
RRP: £22.99
Price: £16.06 & FREE Delivery in the UK. Details
You Save: £6.93 (30%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Temporarily out of stock.
Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we dispatch the item.
Dispatched from and sold by Amazon. Gift-wrap available.


Amazon Price New from Used from
Kindle Edition £10.46  
Paperback £16.06  
Trade In this Item for up to £3.58
Trade in Sams Teach Yourself Java in 24 Hours (covering Java 7 and Android) (Sams Teach 24 Hours) for an Amazon Gift Card of up to £3.58, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

21 Oct 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

Special Offers and Product Promotions

  • Between 20-26 October 2014, spend £10 in a single order on item(s) dispatched from and sold by and receive a £2 promotional code to spend in the Amazon Appstore. Here's how (terms and conditions apply)

Frequently Bought Together

Sams Teach Yourself Java in 24 Hours (covering Java 7 and Android) (Sams Teach 24 Hours) + Sams Teach Yourself Android Application Development in 24 Hours (Sams Teach 24 Hours)
Price For Both: £38.06

One of these items is dispatched sooner than the other.

Buy the selected items together

Product details

  • Paperback: 432 pages
  • Publisher: Sams; 6 edition (21 Oct 2011)
  • Language: English
  • ISBN-10: 0672335751
  • ISBN-13: 978-0672335754
  • Product Dimensions: 23 x 19 x 2.2 cm
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (21 customer reviews)
  • Amazon Bestsellers Rank: 252,843 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

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

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

Most Helpful Customer Reviews
10 of 10 people found the following review helpful
4.0 out of 5 stars Excellent Book 17 April 2012
Format:Paperback|Verified Purchase
This is a good book for the beginner. Just remember that you won't be a Java programmer 24 hours after starting the Introduction! Treat it as 24 lessons of 1 hour spread over a period of days or weeks.

As an experienced programmer, it is difficult to throw away old habits and learn the O-O way. Even so, I was able to grasp the concepts easily.

It is important to follow the sequence, do the Workshops and carry out the extra-curricular activities at the end of each "Hour". If it takes longer than an hour, so be it.
Comment | 
Was this review helpful to you?
15 of 16 people found the following review helpful
4.0 out of 5 stars Optimistic 2 May 2012
Format:Kindle Edition|Verified Purchase
Kindle Version
Although a very good book the 24 hour claim should be viewed with suspicion although you could work through the book in that time it would only be possible if you download all of the programme examples in the book otherwise even typing time would take longer than that. Also learning a programming language from scratch with no other knowledge, which this book attempts to teach is a daunting task which does take time and practice. However the thing that annoyed me about the book and prevented me giving 5 stars was the poor attempt at humour throughout the book, at the end of each hour's section there is a questionnaire with answers which is very useful when trying to judge if you have retained any of the information taught but I found some of the question in the multi choice sections such as "With all this talk about throwing and catching what do the Texas Rangers need to do in the off season?" to be neither funny or helpful.
I find the Kindle version very useful as I can carry the Kindle with me and easily use this book as a reference if I need to the only problem is that some screen shots and light grey text within programme examples are not that easy to read on the Kindle.
However the Kindle version has the advantage that at the end of the book there is a very comprehensive index which is hyperlinked to the text so everything is just a click away without flicking pages and losing your place.
If you stick with it and it does go from the very easy "hello world" type of programme to the complex however once you have got there other books follow with more complex concepts.
Read more ›
Was this review helpful to you?
4 of 4 people found the following review helpful
I nearly gave this 1 star as i became so unhappy with it by the end but as it did a very good job in the beginning i pushed it up to 2 stars as i did learn something which allowed me to have an idea of what i was looking for when trying to find answers relating to the last half of the book.

What i found most perplexing is that at the start of the book it was very well written, every program or example you were given had a detailed explanation of what it was doing but as you get deeper into the book and subjects become more complicated you increasingly get a brief description of the whole program and are left t figure out the individual parts by yourself. I spent many hours on a single piece of code, messing with it to try to figure out what each piece of code actually does. This is specifically important when you come to write your own code as the code you write will be in many ways specific to what you are trying to achieve so you can't just copy and paste in the example you have been given, even if it is a case of changing the order that parts of the code are inserted.

As i said in the title i think the real problem overall is you feel more like your skimming through the last half rather than truely understanding, seemingly because the task of learning a chapter subject is too big for the limited space available.
A classic example is a problem i am currently encountering which is trying to retrieve data i have stored in an xml file.

He has shown me how to write an XML file so i can save my data. Which is very simple.

He then tells you how to retrieve data from an XML file, but not this file you have just created, instead using a much more complex xml file gathered from a website and using an open source library you have to download and install.
Read more ›
Was this review helpful to you?
4 of 4 people found the following review helpful
4.0 out of 5 stars Great Book to get you started with Java 6 Oct 2012
By Ray
Format:Paperback|Verified Purchase
Got this book I must say it is great book to start teaching you Java . The book starts out explaining what The History of Java and how it is used to today. Which I feel is good beacuse it good to know what you are programming with and how it use. Then you will be quickly programing your first Java program then you would be advanceing to more harder topics.To get your Java Skills up and running great book!
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
5.0 out of 5 stars Amazing as a beginners book 2 Oct 2012
Format:Paperback|Verified Purchase
As a new developer I have done a lot of learning in the past couple of years. You can use this book even if you have never done any programming in your life. Clear, very well structured, non-technical and still detailed.
Comment | 
Was this review helpful to you?
4.0 out of 5 stars Useful, but Limited 19 Sep 2014
Format:Kindle Edition|Verified Purchase
Review of the KINDLE version:

I just thought I'd write a quick note to give some (hopefully) objective information. The book starts off by introducing you slowly to the world of Java programming. It contains clear explanations and things make a lot of sense. However, as you progress through the book and the subject matter becomes more complicated, the clarity of the explanations does not seem to be as good as I've been left scratching my head on several occasions. I'm currently on hour 11 and I have learned a lot, but now I'm finding myself looking for extra resources elsewhere to help my understanding. This in itself isn't necessarily a bad thing. I mention this so that you can be aware of the book's limitations. You can find a free manual for the Java language on the ORACLE website ( I've found it a useful aid for my studying, but I do not think that it would be sufficient by itself. I like the structure of Java in 24 hours and I think that it would be difficult to improve it without renaming the book "Java in 24 days". In short, this book doesn't provide enough clear information for you to complete the 24 hour course without using extra resources, but it does give you a good start and a good structure to follow (and also lists other useful sources). I intend to finish the course and to continue learning.
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
4.0 out of 5 stars Very insightful and comical. Would've had 5 stars, ...
Very insightful and comical. Would've had 5 stars, if it weren't for some of the jokes used in the examples weren't distracting.
Published 3 months ago by Anonymous
5.0 out of 5 stars great product
as you would expect, teaches you the fundamentals of java coding, has colour coded "code" like in the software used to code, helpful to know where your going wrong... Read more
Published 15 months ago by andrew currie-scarr
3.0 out of 5 stars Not Bad
this book started off really well but about half way through it seemed like the author was in a rush and not explaining things as well. Read more
Published 16 months ago by Amazon Customer
2.0 out of 5 stars Really wish it was more concise!
For me this author spends too much time waffling about quite straight forward concepts. I found I was having to constantly slap myself across the face to stop my mind from... Read more
Published 17 months ago by LeCasio
5.0 out of 5 stars Another good book from SAMS
Since JAVA is different from Javascript this book is a clear explanation of the Java language. Suitable for begginers and people with a little understanding of JAVASCRIPT
Published 17 months ago by Mr. Colin Thomson
4.0 out of 5 stars 'Animators' beware!
I bought this book as it was recommended as 'THE best book for Java animation'.
However, the word 'animation' does not appear in the Contents page, nor in the Index. Read more
Published 18 months ago by JohnW
2.0 out of 5 stars Not updated for Java 7
Was considering buying this, but after looking at the preview on Amazon - I could see that one of the sections I was interested in hadn't been updated for for Java 7. Read more
Published 19 months ago by Stormrider
4.0 out of 5 stars As expected
No real comments this takes you from novice to knowing your way around, so is some thing to build on
Published 19 months ago by Amazon Customer
4.0 out of 5 stars Sams TYJava
The basics of Java are well presented and the only reason for not giving 5 stars is that the proof reading missed some simple errors.
Published 19 months ago by Mr. Andrew W. Kerr
5.0 out of 5 stars Excellent tool
I give this book 5 stars because it does what it says. You just don't learn it all in a straight 24 hour period, that would be silly. Read more
Published 21 months ago by Jamie D'Alton
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category