This time, I studied Java arrays!
Array → Used to store multiple values used for the same purpose. (It is convenient to use when many variables with "same data type" and "similar purpose" are needed!)
1 Data type [] variable; Variable [value] = value; Caution Array elements start at 0.
2 for (data type variable name: collection-> length (when the number of values increases)-> value (smart) command to execute processing until the element is completed. Also called an extended for statement.
It looks like this.
Thank you for your hard work today.
Recommended Posts