Java Programming Encapsulated - Charles Doohan

Java Programming Encapsulated

By: Charles Doohan

Paperback | 24 October 2026

At a Glance

Paperback


$47.75

or 4 interest-free payments of $11.94 with

 or 

Ships in 5 to 10 business days

Java Programming Encapsulated: Master the Core Logic, Syntax, and Objects from Scratch

A Beginner's Guide to Java with JDK 25

Most programming books teach you an idea once. This one teaches it three times, and that's why it sticks.

If you've tried to learn Java before and ended up copying code you didn't really understand, Java Programming Encapsulated takes a different approach. Every new concept comes with three complete, runnable examples, each with its own job:

- Example 1 is the smallest program that shows the idea, with nothing else to distract you.

- Example 2 changes one thing so you can see where the idea stops working, and what it doesn't mean.

- Example 3 uses the same idea on a new problem, so you learn the rule and not just the sample.

By the third example you can predict what the code will do before you run it. At that point you aren't just recognizing the concept; you can use it.

BUILT FOR TODAY'S JAVA

Everything in this book targets JDK 25, the current Long-Term Support release. You'll write your first programs with compact source files and instance main methods, the cleaner, simpler syntax that JDK 25 made a standard part of the language. You won't have to memorize boilerplate on day one. Every program was written for, and runs on, both Windows and Linux.

FROM AN EMPTY FOLDER TO SOFTWARE YOU'LL ACTUALLY USE

You start by installing the JDK and setting up IntelliJ IDEA or Visual Studio Code. From there you work through the core of the language in order: variables and types, operators, strings, decisions, loops, arrays and lists, records, sets and maps, exceptions, methods, packages, and reading and writing files in CSV and JSON. A full chapter on debugging shows you how to read a stack trace, step through code, and fix the bugs every beginner runs into.

Then you put it all together in two capstone projects:

- An Automatic File Organizer. A command-line tool that sorts a folder, finds duplicate files by hash, previews its plan with a dry run, and can undo its last run.

- A Desktop Flashcard Study App. It stores decks in plain text and schedules your reviews with the Leitner system. You build it first as a terminal program and then as a real desktop window with Swing.

These aren't toy exercises. They're programs you can keep, extend, and talk about in a job interview.

Finally, Part 2 takes you past the beginner level into object-oriented programming: classes, encapsulation, inheritance, interfaces, polymorphism, composition, and abstract classes.

EVERYTHING YOU NEED TO KEEP GOING

- Milestones, common-mistake warnings, and practice exercises in every chapter

- Complete worked solutions to every exercise

- A JDK 25 Quick Reference appendix to keep open on your desk long after you finish

- Full source code for both capstones, a glossary, and an index

- A bonus appendix on running commands on remote machines over SSH

WHO THIS BOOK IS FOR

- Complete beginners with no programming experience

- Self-taught coders who want to learn how Java expects programs to be written

- IT professionals, system administrators, and network engineers who want to automate everyday tasks

- Students and career changers who want real projects for their portfolio

This book skips frameworks, databases, and buzzwords and focuses on the language itself, so that those next topics are easy to pick up later.

Stop memorizing snippets. Start understanding Java. Open to the first page and write your first program today.

More in Web Programming

Web Engineering : Theory and Practice - Jeremiah Downey
Computer Coding Python Games for Kids : DK Help Your Kids With - Carol Vorderman
Coding For Dummies, All New Edition : For Dummies (Computer/Tech) - Paul McFedries
Python All-in-One For Dummies : 3rd Edition - John C. Shovic

RRP $74.95

$55.75

26%
OFF
Building Websites All-in-One For Dummies - Paul McFedries

RRP $74.95

$66.75

11%
OFF
Python Cookbook : Recipes for Mastering Python : 3rd Edition - David Beazley
Learning Python 6th Edition : Powerful Object-Oriented Programming - Mark Lutz
PHP, MySQL, & JavaScript All-In-One For Dummies : For Dummies - Richard Blum
Learning Go : An Idiomatic Approach to Real-World Go Programming - Jon Bodner
Coding All-in-One For Dummies : 2nd Edition - Chris Minnick

RRP $69.95

$50.75

27%
OFF
Developing Graphics Frameworks with Java and OpenGL - Lee Stemkoski
Spark : The Definitive Guide : Big Data Processing Made Simple - Bill Chambers
Building Microservices : Designing Fine-Grained Systems 2nd Edition - Sam Newman
Go Cookbook : Expert Solutions for Commonly Needed Go Tasks - Sau Sheong Chang