How to create an array in Java

An array in Java is a type of variable that can be used to store multiple values. These values ​​are stored based on a key that can then be used