Arrays

Multi-Dimensional Arrays

Introduction: Welcome to the Java tutorial on Multi-Dimensional Arrays. I would highly recommend you have a look at my Arrays page before reading through this one! What is a Multi-Dimensional Array? A Multi-Dimensional Array is an array which contains more than one index at any given placement. For example; instead of just having a value at the index "3", we could have "3""0", "3""1" etc. When are Multi-Dimensional Arrays Used? Compared to arrays there are not used as often.

Arrays

Introduction: Welcome, this page will teach you about Arrays within Java. What is an Array? An array is a variable which holds more than one value, in effect, it's a list of values attached to a variable name. When are Arrays Used? Arrays are very useful for holding lists of values for certain scripts. For example; holding the id of each button that has been activated within a game.

ArrayLists

Introduction: Welcome! This tutorial will teach you about how to create and use ArrayLists. What are ArrayLists? ArrayLists, normally referred to as just Arrays, is a type which can contain multiple items. For example; a shopping list could be referred to as an array or shopping items. ArrayLists must be made up of one type only. You are unable to mix and match different types within one ArrayList such as String and Integer.

Two Dimensional Arrays in Java

Previously, we covered how to use arrays in Java. If you are unfamiliar with arrays, please read through the first tutorial on arrays here. Two dimensional arrays are used to hold numbers that correspond to one another. One dimensional arrays can be thought of as a collection of variables listed in an indefinite number of rows, but a single column. Two dimensional arrays allow for both indefinite rows and columns.