What’s an Array

  • Eclipse: Oxygen
  • Java: 1.8

The array is basically a collection, an arrangement of similar datatypes entities. Thus for a simple example, it is used to assign a common variable name for accessing a large number of entities of the same datatype by the difference of the index number.

How to Initialize Array

We have seen,  it is a collection of entities which have similar data types, thus this tutorial deals with the initialization of an array. And various other datatypes. In addition, how to access the array and certain elements located at various index is shown here.

Output

6
4.0

Contributed by: Poonam Tomar


VIEW COURSES

Buy me a coffee!

 

PayTM QR (INDIA)

  • Get video tutorials
  • Project files set
  • Get Certified

Leave a Reply

avatar
  Subscribe  
Notify of
Close Menu