An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the main method of the this application.
Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the preceding illustration, numbering begins with 0. The 10th element, for example, would therefore be accessed at index 9.
In a real-world programming situation, you would probably use one of the supported looping constructs to iterate through each element of the array. However, the example clearly illustrates the array syntax. You will learn about the various looping constructs (for, while, and do-while) .
================THANK YOU WATCHED MY VIDEO===============
=======================Contact=============================
Email: [email protected]