Skip to main content

Arrays

Body
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. Once a button is clicked, it's ID gets added to the array of clicked buttons which then gives a list of clicked button ids to be used at a later date. Examples: First we need to decide what type of

Add new comment