About the Book
Understanding Java provides a thorough
introduction to the Java programing language and also imparts an understanding
of the way things are in Java.
The overall aims of Understanding
Java by Barry Cornelius are to introduce the main aspects of programming,
to explain the constructs available in the Java programming language and
to create an appropriate foundation for the construction of large programs.
Barry Cornelius has taught courses
in Java at the University of Durham since 1996. This book is based on material
taught by the author to students that are new to programming.
Features
-
Teaches interface declarations at the same
time as class declarations
-
Suggests that each class should have methods
called equals, hashCode, compareTo (if appropriate), toString and a constructor
for cloning.
-
Demonstrates how to provide a Java program
with user interfaces involving components such as buttons, textfields,
dialog boxes and menus (using the Swing API).
-
Uses the Collections API in preference to
teaching the student to implement the code for the classic data structures.
-
Uses the www pages that document the Core
APIs.
-
Each chapter of the book ends with some
useful tips for programming and debugging, and a section entitled "curios,
controversies and cover-ups".
-
As well as containing the code of all
the examples that appear in the book, the book's website at booksites.net/cornelius
contains the code of a www browser written in Java and a set of suggested
solutions to some of the exercises.
Related
Books
Introduction to Computer Programming Courses
(Intro
to Computer Programming)
Table of Contents
1. Examining The Structure Of Java
Programs
2. Constructing Simple Programs
3. Using Objects And Classes From
Java's Core Apis
4. Reading Values From The Keyboard
5. Using Arithmetic Expressions To
Represent Formulae
6. Using If Statements To Make Decisions
7. Using For Statements To Repeat
Statements
8. Using Methods To Organize Programs
9. Using Other Forms Of Control Statements
10. Reading From And Writing To Files
11. Using Interfaces And Classes To
Produce New Types
12. Looking At Other Examples Of Interfaces
And Classes
13. Providing A GUI: Textfields And
Buttons
14. Manipulating Collections: Lists,
Queues And Stacks
15. Using An Array To Represent A
Collection Of Values
16. Decoupling The Model From The
User Interface
17. Using Enumerations, Sets And Maps
18. Providing A GUI: Menus And Internal
Frames
19. Deriving A Class From Another
Class
20. Producing Applets (For Use With
The WWW)
21. Looking Briefly At Other Topics
Appendices
A. Obtaining The Java 2 SDK And An
Appropriate Text Editor
B. Compiling And Executing Programs
Using The Java 2 SDK
C. Producing Javadoc Documentation
References
Indexes |