What are dynamic arrays in java explain with an


1.

a. What are dynamic arrays in Java? Explain with an example.

b. Put down a program in a class NumberAboveAverage that counts the number of days that the temperature is above average. Read ten temperatures from the keyboard and place them in an array. Compute the average temperature and then count and display the number of days on which the temperature was above average.

2.

a. How to declare and initialize a two dimensional Array in Java? Explain with an example.

b. Explain with an example how a two-dimensional array can be passed to a Method.

Solution Preview :

Prepared by a verified Expert
Business Management: What are dynamic arrays in java explain with an
Reference No:- TGS02802072

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)