Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Tips and short articles on this subject
Good Programming practise - where to initialise variables
Build on what you already have with OO
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Java module J715
Putting the Java Language Together
Exercises, examples and other material relating to training module J715. This module is presented on Private Courses and Specially Run Courses only

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 ...
http://www.wellho.net/mouth/1181_Goo ... ables.html  [short article]
public class P3 { String Name; String Postcode; String County; String Area; P3 () { } public static P3 make(String Incoming) { if ...
http://www.wellho.net/resources/ex.php4?item=j715/P3.java  [code sample]
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 ...
http://www.wellho.net/mouth/836_Buil ... th-OO.html  [short article]
public abstract class Place { String Name; String Postcode; String County; String Area; Place () { } public static Place make(String Incoming) ...
http://www.wellho.net/resources/ex.php4?item=j715/Place.java  [code sample]
import java.io.*; import java.util.*; public class MF { public static void main(String [] args) { Hashtable info = read_data("postcodes"); ...
http://www.wellho.net/resources/ex.php4?item=j715/MF.java  [code sample]
import java.io.*; public class PF1 { public static void main(String [] args) { File Source = new File("postcodes"); if (! Source.exists()) ...
http://www.wellho.net/resources/ex.php4?item=j715/PF1.java  [code sample]
public class P4 { String Name; String Postcode; String County; String Area; P4 () { } public static P4 make(String Incoming) { if ...
http://www.wellho.net/resources/ex.php4?item=j715/P4.java  [code sample]

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.

This module is presented on Private Courses and Specially Run Courses only

Examples from our training material
Area.java   defintion of an area of the UK
District.java   definition of a district of the UK
MF.java   Final example application
Multifinder.java   Full application
P3.java   Example object
P4.java   Object P4 definition
PF1.java   Sample extended class
PF2.java   Second example application
PF3.java   Third example application
PF4.java   Final lookup on data example, ignoring area v district distinction
Place.java   Solution - base class (abstract)
Placefinde.java   Solution - application class
Background information
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
Sample Answer.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Java,Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses 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.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho