Skip to Content
Sams Teach Yourself Java in 24 Hours, Eighth Edition
book

Sams Teach Yourself Java in 24 Hours, Eighth Edition

by Rogers Cadenhead
September 2017
Beginner
448 pages
12h 11m
English
Sams

Overview

Computer programming with Java is easier than it looks. In just 24 lessons of one hour or less, you can learn to write computer programs in Java.

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, an Android app, and even Minecraft mods in Java.

Each lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success.

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
  • Use Java 9’s new HTTP client
  • Use Java to create an Android app
  • Expand your skills with closures
  • Create Minecraft mods with Java

Contents at a Glance

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

Appendixes

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition

Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition

Rogers Cadenhead

Publisher Resources

ISBN: 9780134663647