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|
|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
This module is available under an Open Training Notes License
for free download from http://www.training-notes.co.uk
Topics covered in this module
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. Also
available is the Opentalk
Forum for discussion of technical questions.