An array is a java data structure define an array and why


In Java, a data structure is a particular way of organizing data so that it can be used efficiently. An array is a Java data structure. Define an Array and why you would use one. Provide an example that is not from the text.

What is the output of the following array code fragment:
int[] egArray = { 2, 4, 6, 8, 10, 1, 3, 5, 7, 9 };for ( int index= 0 ; index System.out.print( egArray[ index ] + " " );
2 4 6 82 4 6 8 102 4 6 8 10 12 4 6 8 10 1 3 5 7 9

Solution Preview :

Prepared by a verified Expert
JAVA Programming: An array is a java data structure define an array and why
Reference No:- TGS02384566

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)