I am using the text Object-oriented Programming in JavaTM in my beginning computer programming course. It is aimed at students with little or no programming experience, and it uses DrJava as a vehicle for student experimentation object-oriented programming concepts.
Object-oriented Programming in Java is available under a Creative Commons license. Anyone is free to use this book under the following conditions:
- Attribution.
You must attribute the work in the manner specified by the
author or licensor.
- Noncommercial.
You may not use this work for commercial purposes.
- No Derivative Works.
You may not alter, transform, or build upon this work.
For any reuse or distribution, you must make clear to
others the license terms of this work.
Currently the text is under extensive development, so you should check frequently for revisions. It has yet to be thoroughly proofread, so expect typographical and grammatical errors. These will disappear in time in future revisions. The exact sequence of chapters is subject to change as well.
Current version as of 13 March 2008
The following chapters are currently available:
- Table of Contents, etc.
- Chapter 1 The Context of Software Development
- Chapter 2 Values, Variables, and Types
- Chapter 3 Arithmetic Expressions
- Chapter 4 Objects: Packaging Computation
- Chapter 5 Boolean Expressions and Conditional Execution
- Chapter 6 More Complex Conditionals
- Chapter 7 Modeling Real Objects
- Chapter 8 Living with Java
- Chapter 9 Class Members
- Chapter 10 Composing Objects
- Chapter 11 Inheritance and Polymorphism
- Chapter 12 Simple Graphics Programming
- Chapter 13 Some Standard Java Classes
- Chapter 14 The Object Class
- Chapter 15 Software Testing
- Chapter 16 Using Inheritance and Polymorphism
- Chapter 17 Iteration
- Chapter 18 Examples using Iteration
- Chapter 19 Other Conditional and Iterative Statements
- Chapter 20 Arrays
- Chapter 21 Arrays as Objects
- Chapter 22 Working with Arrays
- Chapter 23 A Simple Database
- Chapter 24 Graphical Objects
- Chapter 25 Exceptions
- Bibliography, index
The jar file for the simplified graphics classes is oopj.jar for Windows and Linux users. Mac users should instead download oopj_mac.jar. The current version of the simplified graphics classes is 0.5. To see if you have the current version, within DrJava's Interaction's environment type
edu.southern.computing.oopj.Viewport.VERSION
or see what the following Java program prints:
public class TestoopjVersion { public static void main(String[] args) { System.out.println(edu.southern.computing.oopj.Viewport.VERSION); } }
If the version is less than the current version indicated above (or you get an error about VERSION not existing), you should replace the current oopj.jar on your system.
Preliminary documentation for the oopj.jar library is found here.