Exercises, examples and other material relating to training module J715. This module is presented on Private Courses
and Specially Run Courses
You've learnt the fundamentals of Java Ð the language itself, the structure of classes and packages, and also the use of the utility classes in java.util. Now it's time to put all the fundamental elements together in a complete example. This module is written as an exercise, with a completed sample answer.
|Articles and tips on this subject||updated|
|4430||The spirit of Java - delegating to classes|
Building up towards the end of a Java course, I've been very much teaching the spirit of Java where code is delegated to classes and leaves the main application as a few short method calls, making it readable in its own right, and allowing code that uses the same data type to be shared between programs. ...
|4326||Learning to program - comments, documentation and test code|
Updates material from our courses for newcomers to programming ... we're very happy to help newcomers learn about the basic principles of programming, running an extra day for a very small group on the front of our regular courses for delegates who have programmed before, but in different languages.
|2735||Type checking, Java arrays and collections|
Java's arrays are "typed" - you declare them to contain a particular type of primitive, or a particular type of object (which also enables them to contain any object type which is extended from that declared type).
But, when you go beyond arrays and use the more flexible utility classes such as ArrayLists, ...
|1181||Good Programming practise - where to initialise variables|
It's a good idea to initialise your variables directly before you use them for the first time if you're going to use them as accumulators.
By accumulator I mean that you're going to write assignments such as:
$n += 4; # Perl
incr notepad; # Tcl
lappend flcodes [lindex ...
|836||Build on what you already have with OO|
If I start recalling a "Goons" sketch, then I'll show my age .... but never mind. It was a RERUN that I saw ;-)
Spike Milligan is counting votes at an election. "Two thousand, six hundred and forty two". "Two thousand, six hundred and forty three". "Two thousand, six hundred and forty four" ...
Examples from our training material
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
Specification of requirement.
Design using abstract base class, extended to subclasses.
Place.java (base class), Area.java and District.java (extended classes).
Developing and testing.
Using these classes in multiple applications such as MultiFinder.java
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.