News

//Prints the 6th element System.out. println ("Element at index 5: " + numbers[5]); To print every item in the array we can use a loop that will iterate over each array.element.
You can define initial values for the elements of a static array by listing the initial values in parentheses following the list of element names in the DECLARE or ARRAY statements. Commas are ...