Learn Java the Hard Way
$15.00
Minimum price
$23.00
Suggested price

Learn Java the Hard Way

About the Book

“Learn Java the Hard Way” is a book with tutorial videos that teaches you how to code the same way a lot of us learned as children in the 1980s: typing in short, simple programs and getting them to work.

The exercises and explanations in this book are distilled from my nearly two decades of experience teaching programming to ordinary students. Over 2,000 students have taken my classes and nine months later almost all of them knew how to code — at least a little!

If you have ever bought another Java book for “beginners” and been lost by page 10, then my book is for you.

Includes:

  • 244-page book. Really learn the basics of programming with Java, even if other books have failed you.
  • Java source code for all the example programs in the book
  • dozens of Study Drills to test your understanding

About the Author

Graham Mitchell
Graham Mitchell

I have been teaching normal kids to code and nerds to be more socially savvy since 1997.

More specifically, I've been teaching Computer Science at Leander High School (near Austin, TX) since the fall of 1997. The high school I teach at is a pretty good school; consistently ranked near the top 5% of public schools nationally. I have many students who are exceptional but most of my students are regular kids with no particular aptitude for programming.

To date, I've taught over 2000 students in person the basics of coding, and hundreds more through my book(s).

Packages

The Book

Really learn the basics of programming with Java, even if other books have failed you. You'll also get Java source code for all the example programs in the book, and dozens of Study Drills to test your understanding (but no videos).

Includes:

  • extras
    Java source code and text files

    This contains the Java source code for all the exercises in the book. You should still retype them from scratch, though. The text files for some of the later exercises are also included.

  • PDF

  • EPUB

  • WEB

  • English

$15.00
Minimum price
$23.00
Suggested price
The Book + Tutorial Videos

244-page book in PDF, Kindle and iPad formats. Really learn the basics of programming with Java, even if other books have failed you. Java source code for all the example programs in the book. Dozens of Study Drills to test your understanding. Hours of tutorial videos (one per chapter) that walk you through the concepts and the example programs. (but no answer videos)

Includes:

  • extras
    Java source code and text files

    This contains the Java source code for all the exercises in the book. You should still retype them from scratch, though. The text files for some of the later exercises are also included.

  • extras
    Tutorial Videos

    Hours of tutorial videos (one for each chapter) that walk you through the concepts and the example programs.

  • PDF

  • EPUB

  • WEB

  • English

$34.00
Minimum price
$34.00
Suggested price
The Book + Tutorial & Answer Videos

244-page book in PDF, Kindle and iPad formats. Really learn the basics of programming with Java, even if other books have failed you. Java source code for all the example programs in the book. Dozens of Study Drills to test your understanding. Hours of tutorial videos (one per chapter) that walk you through the concepts and the example programs. Hours of answer videos that show you solutions to every Study Drill. Trying to solve a problem and comparing it to an expert solution really helps!

Includes:

  • extras
    Java source code and text files

    This contains the Java source code for all the exercises in the book. You should still retype them from scratch, though. The text files for some of the later exercises are also included.

  • extras
    Tutorial & Answer Videos

    Hours of tutorial videos (one for each chapter) that walk you through the concepts and the example programs, AND ALSO hours of answer videos that show you solutions to every Study Drill.

  • PDF

  • EPUB

  • WEB

  • English

$45.00
Minimum price
$45.00
Suggested price

Table of Contents

  •  
    • Acknowledgements
    • Preface: Learning by Doing
    • Introduction: Java
    • Exercise 0: The Setup
    • Exercise 1: An Important Message
    • Exercise 2: More Printing
    • Exercise 3: Printing Choices
    • Exercise 4: Escape Sequences and Comments
    • Exercise 5: Saving Information in Variables
    • Exercise 6: Mathematical Operations
    • Exercise 7: Getting Input from a Human
    • Exercise 8: Storing the Human’s Responses
    • Exercise 9: Calculations with User Input
    • Exercise 10: Variables Only Hold Values
    • Exercise 11: Variable Modification Shortcuts
    • Exercise 12: Boolean Expressions
    • Exercise 13: Comparing Strings
    • Exercise 14: Compound Boolean Expressions
    • Exercise 15: Making Decisions with If Statements
    • Exercise 16: More If Statements
    • Exercise 17: Otherwise (If Statements with Else)
    • Exercise 18: If Statements with Strings
    • Exercise 19: Mutual Exclusion with Chains of If and Else
    • Exercise 20: More Chains of Ifs and Else
    • Exercise 21: Nested If Statements
    • Exercise 22: Making Decisions with a Big Switch
    • Exercise 23: More String Comparisons
    • Exercise 24: Choosing Numbers Randomly
    • Exercise 25: Repeating Yourself with the While Loop
    • Exercise 26: A Number-Guessing Game
    • Exercise 27: Infinite Loops
    • Exercise 28: Using Loops for Error-Checking
    • Exercise 29: Do-While loops
    • Exercise 30: Adding Values One at a Time
    • Exercise 31: Adding Values for a Dice Game
    • Exercise 32: The Dice Game Called ‘Pig’
    • Exercise 33: Calling a Function
    • Exercise 34: Calling Functions to Draw a Flag
    • Exercise 35: Displaying Dice with Functions
    • Exercise 36: Returning a Value from a Function
    • Exercise 37: Areas of Shapes
    • Exercise 38: Thirty Days Revisited with Javadoc
    • Exercise 39: Importing Standard Libraries
    • Exercise 40: Programs that Write to Files
    • Exercise 41: Getting Data from a File
    • Exercise 42: Getting ALL the Data from a File
    • Exercise 43: Saving a High Score
    • Exercise 44: Counting with a For Loop
    • Exercise 45: Caesar Cipher (Looping Through a String)
    • Exercise 46: Nested For Loops
    • Exercise 47: Generating and Filtering Values
    • Exercise 48: Arrays - Many Values in a Single Variable
    • Exercise 49: Finding Things in an Array
    • Exercise 50: Saying Something Is NOT in an Array
    • Exercise 51: Arrays Without Foreach Loops
    • Exercise 52: Lowest Temperature
    • Exercise 53: Mailing Addresses (Records)
    • Exercise 54: Records from a File
    • Exercise 55: An Array of Records
    • Exercise 56: Array of Records from a File (Temperatures Revisited)
    • Exercise 57: A Deck of Playing Cards
    • Exercise 58: Final Project - Text Adventure Game
    • Next Steps
  • Notes

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub