Java Lab EPractice - Classes and Objects
Java Lab EPractice - Classes and Objects
Objects
Q1. Write a program that creates and initializes a four-
element int array. Calculate and display the average of its
values.
Q2. Write a program that creates a 2-d array with int values.
The first element should be an array containing 30. The
second array should be an array containing 300 and 500.
The third element should be an array containing 3000, 5000
and 5000.