Java in 24 Hours, Sams Teach Yourself (Covering Java 9)

Rogers Cadenhead  
Sams Publishing
Total pages
September 2017
Related Titles

Product detail

Product Price CHF Available  
Java in 24 Hours, Sams Teach Yourself (Covering Java 9)
39.30 approx. 7-9 days


In arenas ranging from enterprise development to Android app programming to game development, Java remains one of the world's most popular programming languages. Sams Teach Yourself Java in 24 Hours helps Java beginners gain true mastery over the new Java 9.


In this book's straightforward, step-by-step approach, each lesson builds on everything that's come before, helping readers learn Java's core features and techniques from the ground up. Friendly, accessible, and conversational, this book offers a practical grounding in the language, without ever becoming overwhelming or intimidating.


Coverage includes: learning programming basics; working with data and objects; programming graphical user interfaces; creating interactive web programs; handling errors; writing Internet and mobile apps; and much more.


  • Updated with fresh, improved examples
  • Covers Java 9 features such as modularization
  • Teaches Java as a first programming language: short, simple, one-hour chapters are ideal for the beginner with no previous programming experience
  • Clearly written, interesting to read, and the nationally known author's unique sense of humor makes learning Java fun and entertaining

New to this Edition

Java 9 and new features such as JDK modularization are covered in this new edition. The book's examples have been extensively refreshed and updated, with more visual examples and diagrams. This edition of the book continues to use the NetBeans IDE, which has proven to be helpful for readers who don't want to master a command-line environment just to develop Java programs.

Table of Contents

Part I Getting Started

1 Becoming a Programmer

2 Writing Your First Program

3 Vacationing in Java

4 Understanding How Java Programs Work

Part II Learning the Basics of Programming

5 Storing and Changing Information in a Program

6 Using Strings to Communicate

7 Using Conditional Tests to Make Decisions

8 Repeating an Action with Loops

Part III Working with Information in New Ways

9 Storing Information with Arrays

10 Creating Your First Object

11 Describing What Your Object is Like

12 Making the Most of Existing Objects

Part IV Moving into Advanced Topics

13 Storing Objects in Data Structures

14 Handling Errors in a Program

15 Creating a Threaded Program

16 Using Inner Classes and Closures

Part V Programming a Graphical User Interface

17 Building a Simple User Interface in Swing

18 Laying Out a User Interface

19 Responding to User Input

Part VI Writing Internet Applications

20 Reading and Writing Files

21 Using Java 9's New HTTP Client

22 Creating Java2D Graphics

23 Creating Minecraft Mods with Java

24 Writing Android Apps


A Using the NetBeans Integrated Development Environment

B Where to Go from Here Java Resources

C This Book's Web Site

D Fixing a Problem with the Android Studio Emulator


Rogers Cadenhead is a writer, computer programmer, and web developer who has written more than 25 books on programming- and 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. Rogers can be reached on Twitter at @rcade.