Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.

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 J705
Exercises, examples and other material relating to training module J705. This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

A regular variable can hold one piece of information, but an array can hold more than one. Arrays are declared to hold a number of elements, and data is then written to and read from each element based on its position number.

Articles and tips on this subjectupdated
4428Using the lead - passing arrays and other collections in Java
If you're taking the dog for a walk, it's much more lightweight to simply take the lead and have the dog follow than to actually carry the dog. And if you're passing a whole collection of data into a function, it's much more lightweight to pass in the address or reference to the collection than to ...
4413Binomial Coefficient (Pascal Triangle) objects in Java
An exercise on our Java course from which our delegates gain a lot of appreciation is the one in which I ask them to set up an array of arrays containing Pascal's Triangle of Binomial Coefficients. It sounds mighty complex, but I explain it on the board and it comes down to just defining the arrays ...
4347Arrays in Java - an introduction for newcomers
In Java, arrays are objects but with some extra syntax which gives you additional ways to access them, for example using a traditional subscripting notation. From the Java Course I am running this week, an example written in front of my delegates is [here]. Setting up an array ...   float ...
3118Arrays of arrays - or 2D arrays. How to program tables.
It's shorthand when you're learning a new programming language to ask "how does it handle multiple dimension arrays" ... but in practise very few languages actually support true multidimensional arrays these days, and in those which do you might be well advised to use an alternative that's more flexible. What ...
3039Fresh Paint - Java Arrays
I've just applied a coat of fresh paint to some of our Java examples - Arrays in Java - and added the refurbished examples on the web site. The great news is that the old code just worked (I love compatability) but I have much improved the comments. 1. [code] - a 2 dimensional array (or strictly speaking ...
3038Setting up individual variables, and arrays, in Java - some commented examples
In Java, variables must be defined before they have an initial value assigned to them, and they must have an initial value assigned to them before the value thay contain is used; there's no automatic assumption that a new name is a variable, nor is there an assumption made of what type of data a variable ...
2648Java arrays - are they true arrays or not?
Java's arrays are "true" arrays, in that they occupy sequential memory locations in which they are looked up by position number, so that access can be very fast. But that does mean that once an array has been defined to be a certain size, it cannot be resized in situ. Fortunately, Java is a dynamically ...
1614When an array is not an array
An array, I was taught, is a sequential series of memory locations in which values of some type are stored. In an array, each of the memory locations is the same size (number of bytes). And so, as I was taught, arrays can be used very efficiently using pointer arithmetic, BUT they need to: a) Be defined ...
1498Java is a dynamic language .... (and comparison)
Many older programmers are used to setting up an array of a fixed size and saying "that's fixed" ... for the duration of the program, if not for all time until the application is recompiled. Languages such as C gave us malloc, calloc and realloc (and things have progress on somewhat in C++) to let us ...
1497Training Season Starts again!
I'm glad that our business isn't heavily seasonal - tourist places like Longleat have a heavy summer and a barren winter, and The Christmas Shop must, surely, be heading for a quiet few months. But we are - slightly - seasonal; we have a quiet three weeks where no-one wants to learn Perl or PHP (or ...
Examples from our training material
A350.java   Array - setting up, filling, looking for highest and lowest values
A365.java   Array - length, initialise throughout, arrays or strings
Arr1.java   First Array in Java
Arx.java   Array demonstration
Ax1.java   Passing arrays by their references
Bowerhill.java   Dynamic Array sizing (multidimensional)
Charlton.java   Setting up and using array of arrays
Cornet.java   Sample exercise answer (2)
Flute.java   Sample exercise answer (1)
Gurdy.java   Pascal's triangle using dynamic arrays
Hurdy.java   Pascal's traingle using a two dimensional array
PascalAsObject.java   Pascal Triangle as Object
Weekend.java   Array of Objects
Wilsford.java   Two Dimensional non-rectangular Array
compton.java   Array initialisation
rowby.java   Dynamic use of arrays
rushall.java   Two dimensional array
upavon.java   Array Manipulation
Studying Java in Oxford
Background information
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
Definition and declaration.
Array manipulation and replacement.
Multidimensional arrays.
Arrays of Objects.
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,Ruby, Lua, 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.

You can Add a comment or ranking to this page

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

PAGE: http://www.wellho.net/resources/J705.html • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb