How to declare and initialize a two dimensional array in


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: How to declare and initialize a two dimensional array in
Reference No:- TGS02805033

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)