Fresh Paint - Java Arrays
Archive - Originally posted on "The Horse's Mouth" - 2010-11-09 16:37:05 - Graham EllisI'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.

2. [here] - a second example, where the array is not rectangular.
3. [here] - a dynamic example, where the various sizes are selected through user input (I have reused my WellHouseInput class to read from the user).
Other array handling examples ...
[here] - simplest array example in Java.
[here] - array initialisation in Java.
I've also extended my array first principles example to add in an array of strings and to do some good text handling - [here].
Illustration - from the training notes of our Java Courses; this illustrates the array structures set up in the examples that this blog refers to. Delegates on our course, which can be run at our training centre in Melksham, or on site, get a folder of notes that covers the course - around 60 to 80 pages per day. Download a sample Java module [here]