Java Resources

 

 

Standards

Coventry University's Java Programming standards http://www.coventry.ac.uk/swift/~csx067/java/std.doc

 

Documentation

Full Java documentation for JDK 1.2.2 at http://www.coventry.ac.uk/swift/help/javadoc/jdk1.2.2/docs

 

Java API (Application Programmers Interface) documentation at http://www.coventry.ac.uk/swift/help/javadoc/jdk1.2.2/docs/api

 

Java AWT (Abstract Windowing Toolkit) documentation at http://www.coventry.ac.uk/swift/help/javadoc/jdk1.2.2/docs/api/java/awt/package-summary.html

 

Java String class documentation at http://www.coventry.ac.uk/swift/help/javadoc/jdk1.2.2/docs/api/java/lang/String.html

 

The EasyIn class documentation

 

The aLibrary package (and basic Java classes) documentation at http://www.coventry.ac.uk/swift/~csx067/java/aLibraryDocs/index.html

 

Java software

For 2002-3, the University will use Java SDK 1.3.1. Note that it is very large

Java can be downloaded directly from the 'Sun' site http://java.sun.com.

class EasyIn

The EasyIn class is provided on the University system for your use. If you want to use it at home you'll need to get the software. The class can be downloaded from website for the Charatan and Kans textbook. Alternatively the code is available in the Charatan and Kans textbook from where you can type it in. However EasyIn.class file can be copied from 'W:/MIS/113CS/EasyIn'. It is tiny

If you want to use this with BlueJ on your own computer at home you'll need to configure your BlueJ to find it. See BlueJ Resources.

Documentation

package aLibrary

The aLibrary package is provided on the University system for your use. If you want to use it at home you'll need to get the software from the CD sold with Riley's book ("The Object of Java: BlueJ edition", pub AddisonWesley 2002)

The package files and its documentation for this class can be copied from 'W:/MIS/113CS'. They are quite small

If you want to use this package with BlueJ on your own computer at home you'll need to configure your BlueJ to find it. See BlueJ Resources.

There is an error on the version of aLibrary distributed with the BlueJ version of Riley's book. File AWindow_1.class should be renamed as AWindow&1.class and AWindow_2.class should be renamed as AWindow&2.class.

Documentation for this class is in
http://www.coventry.ac.uk/swift/~csx067/java/aLibraryDocs/index.html

package MisIO

The Java MisIO package is available for you to take home from alfgar. (To students this is seen as their linux system.) Copy all the files onto a floppy and then use the READ.ME file

The files are in /users/cs/csx067/JAVAFILES/MisIO/

Documentation for this class is in
http://www.coventry.ac.uk/swift/~csx067/java/misio.htm

If you want to use this package with BlueJ on your own computer at home you'll need to configure your BlueJ to find it. See BlueJ Resources.

Grasp software - a simple Java IDE - an alternative to BlueJ

Links to web sites where you can get your own copy of the GRASP system can be found on the 'Work' section of Ken Monk's web page at http://www.mis.coventry.ac.uk/~kenmk/.

Instructions to help you install PC Grasp at home are available (as a Word document) at http://www.coventry.ac.uk/swift/~csx067/java/configur.doc

This can be installed on any PC using Windows 95 or above or linux

 

Supporting Java Materials

Encapsulation: What is an object?
The Essence of OOP Using Java: Objects and Encapsulation by Richard G Baldwin at http://softwaredev.earthweb.com/java/sdjjavase/print/0,,12395_935351,00.html, published Dec 2001

    Notes:
  • 'stored data' and 'state' refer to the set of attribute values held in an object at any one time
  • 'invoking' a method means running the method
  • the 'behaviour' of a method is sometimes referred to as its responsibility
  • the term 'variable' or 'reference variable' is used here to refer to attributes as well as other values which need to be stored

Classes; intro to arrays
The Essence of OOP Using Java: Classes by Richard G Baldwin at http://softwaredev.earthweb.com/sdtech/print/0,,12065_943981,00.html, published 20 Dec 2001

    Notes:
  • Arrays would typically be covered later in a Java course. For now think of the array object stationNumber simply as being a collection of 5 attributes which can each hold a radio station frequency setting. Each of these 5 can be set by using an index number "set the xth stationNumber"

Inheritance, Constructors
The Essence of OOP Using Java: Inheritance, Part 1 by Richard G Baldwin at http://softwaredev.earthweb.com/sdtech/print/0,,12065_948121,00.html, published 3 Jan 2002

    Notes:
  • When 'instance methods' are referred to, just consider them to be methods unless you've already covered the 'static' concept.

Inheritance, Method Overridding
The Essence of OOP Using Java: Inheritance, Part 2 by Richard G Baldwin at http://softwaredev.earthweb.com/java/print/0,,12082_957381,00.html, published 17 Jan 2002

    Notes:
  • Overloading is considered to be different from overriding. An overridden method has the same name and the same number and types of arguments. An overloaded one simply has the same name. Not all authors make this distinction.
  • Polymorphism is based on the concept of overridding methods.

Primitive types: int, boolean, float, double
Java Advanced Placement Study Guide: Intro to the Lessons, Primitive Types by Richard G Baldwin at http://softwaredev.earthweb.com/java/print/0,,12082_939691,00.html, published 13 Dec 2001

    Notes:
  • the term 'variable' or 'reference variable' is used here to refer to attributes as well as other values which need to be stored

Assignment and Arithmetic Operators, type conversion (cast), String concatenation
Java Advanced Placement Study Guide: Assignment and Arithmetic Operators by Richard G Baldwin at http://softwaredev.earthweb.com/java/print/0,,12065_946031,00.html, published 27 Dec 2001

    Notes:
  • Some of the precise detail about modulus with non-integer values is probably beyond what is expected of you

Relational (Comparison) Operators, Increment Operator, loops (if, while, for)
Java Advanced Placement Study Guide: Relational Operators, Increment Operator and Structures by Richard G Baldwin at http://softwaredev.earthweb.com/sdtech/print/0,,12065_952501,00.html, published 10 Jan 2002

    Notes:
  • Some of this lesson is very pedantic. However it is worth persuing as it will ensure your understanding is correct
  • Scope is the area of a class in which a name (of an attribute or variable) is known and can therefore be used.
  • Postfix means 'added on at the end' eg x++ where the ++ increment operator is added on after the variable 'x'

Logical Operations (||, &&, !), Numeric Cast, String Concatenation (+) and toString()
Java Advanced Placement Study Guide: Logical Operations, Numeric Cast, String Concatenation and the toString() method by Richard G Baldwin at http://softwaredev.earthweb.com/java/print/0,,12082_961021,00.html, published 24 Jan 2002

Developing GUIs
Java Applet Basics by Anand Narayanaswamy at http://softwaredev.earthweb.com/java/print/0,,12082_791151,00.html , published 25 June 2001.

A bare-bones reminder as to how to write Applets. Also provides a quick reference for developing GUIs - layout managers and widgets.

 

More Advanced Materials

The JavaTM Tutorial at http://java.sun.com/docs/books/tutorial
An important reference tutorial

 

Sample files

Sample files for Units I & J are to be found, on the linux system, in directory /users/cs/csx067/JAVAFILES/UNITS_IJ/

 

Unicode/ASCII

Unicode/ASCII character set at http://www.coventry.ac.uk/swift/~csx067/java/ascii.htm

Java primitive data types

Java's primitive data types http://www.coventry.ac.uk/swift/~csx067/java/datatypes.htm

 

Related resources

Windows NT 'Minesweeper' program (for Unit I1) can be run from

MIS Applications, Util, 'Common Data', lisap, winmine.exe

 

Last updated: 21 September 2004