Skip to content
Sign upLog in
← Back to Community

How to make an array

Profile icon
abila123

I need help00ppp00ppppppp!"!!£;4;pleas man I need help

Voters
Profile icon
abila123
Comments
hotnewtop
Profile icon
SixBeeps
array = ["this", "is", "an", "array"]
Profile icon
SuperUser111

An Array is basiacally a list of Strings or Numbers. It is immutable (size cannot be changed once the Array has been specified) and should not be confused with lists.

The correct format for creating an array:

int[] array = [3, 4, 5];

The symbols '[]' are mandatory for creating an Array. They are put after the 'int' or 'String' once you have specified whether you would like your array to contain Strings or Integers.

For thorough explanation: https://repl.it/@SuperUser111/Array-Explanation