News

To create this type of array in Java, simply create a new variable of your chosen data type with square brackets to indicate that it is indeed an array.
Create the Java string variable. You can create the variable anywhere in your source code file, but the variable is typically created at the beginning of your Java function.
However, this is just one type of variable in Java. Understanding this is important, as we need to choose (declare) the type of variable when we first create it.