Java Programming Step-by-Step

Recommended retail price: £ 26.95 Our price: £ 23.95 each Publisher: Ability First Limited

Paperback (ISBN: 978-09565758-2-1)

For the ebook version on Amazon Kindle click here

  • Java Programming Step-by-Step (available as a paperback book or as a downloadable PDF ebook) is suitable both for beginners and those with some programming experience. This book will guide you step-by-step through the development of a desktop application written using the Java programming language. No prior knowledge is assumed, and each step is clearly explained so you can follow along in your own time.

    Coverage includes:

    • How to apply essential object-oriented concepts;
    • How to define classes, interfaces, variables & methods;
    • How to use conditional statements, arrays, loops and sorts;
    • How to structure your application to make it easy to write, enhance and maintain;
    • How to properly document, test and debug your programs;
    • How to define and use events, listeners and exceptions;
    • How to use threads to make your program run more than one process as the same time;
    • How to design and develop a user-friendly graphical user interface using buttons, labels, text fields, drop-down selectors, checkboxes, radio buttons, sliders, menu-bars, icon toolbars, etc.
    • How to save your program's data to a disk file.

    java7-star This book covers Java 7.

  • Table of contents

    • Preface
    • 1. Introduction
    • 2. Object-Oriented Concepts
    • 3. Using Classes and Methods
    • 4. Packages and Structure
    • 5. Static Members, Constants and Conditionals
    • 6. Arrays, Loops and Sorts
    • 7. Exceptions
    • 8. Refactoring and Utility Classes
    • 9. Immutable Classes and the Object Class
    • 10. Documentation, Testing and Debugging
    • 11. Collections and Maps
    • 12. Multi-threading
    • 13. Introduction to Graphical User Interfaces
    • 14. Common GUI Components
    • 15. Access Modifiers & Visibility
    • 16. Developing a User Interface
    • 17. More User Interface Developments
    • 18. Finishing Off the User Interface
    • 19. Persistence
    • 20. Other Java Features
    • Appendix A: Glossary
    • Appendix B: Bibliography
  • The following errata apply to the print version of the book


    • Page xi: The first line of the first sentence should read "inexperienced programmer";
    • Page xiiii: In section "The software used in this book" the last three words should state "for your convenience".

    Chapter 1

    • Page 43: The second sentence in the first bullet point should read - "If Animal was defined in the same package then an import statement would not be needed.";
    • Page 45: The third to last word in the first paragraph should be "modifying".

    Chapter 2

    Chapter 3

    • Page 81: In section "Abstract classes and methods" the code that instantiates animal3 should be aPenguin and not a Giraffe.

    Chapter 4

    • Page 110: In section "A class to model a visitor to the zoo" there is some code that intantiates a Lion called clarence, but the following paragraph incorrectly refers to it as Leo.
    • Page 115: In the second paragraph of text the reference to method getName() should instead begetEmail().

    Chapter 5

    • Page 129: In the first sentence VirtualZoo should say Experiments.

    Chapter 8

    • Page 190: ZooKeeper should also implement Comparable;
    • Page 192: Visitor should also implement Comparable;
    • Page 193:
      • Visitor should include compareTo() as defined on page 163;
      • There should be a bullet point after the code block saying: "Note the inclusion of a new method hasSponsoredAnimal() which serves as a convenience to client objects, returning trueif the visitor is sponsoring an animal or false otherwise".

    Chapter 9

    • Page 202: getEmail() should return spamAddress;

    Chapter 11

    • Page 250: The reference to VirtualZoo should be Experiments;
    • Page 259: The reference to VirtualZoo should be Experiments;

    Chapter 18

    • Page 440: VisitorTable is created in virtualzoo.ui.

    Chapter 19

    Chapter 20; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: repeat-x;">

    If you think you have spotted a mistake in the book we would be grateful if you would let us know. The easiest way would be to use our enquiry form on our Contact Us page. Thank you.

  • The source code for the book is hosted on GitHub. You can either view it online or click the Download ZIP button (on the GitHub site) to obtain a copy on your local computer. Please take note of the README file that appears on the page.

    The following link will take you to the hosted source code on GitHub: