Question: Student Name:-. [Java _Homework_1] Write complete java application that works as follow: a. Define static void method called FillData that takes 1D integer array then
Student Name:-. [Java _Homework_1] Write complete java application that works as follow: a. Define static void method called FillData that takes 1D integer array then fills it with integer random data. - To generate random data, you must import java.util.Random ,create an object from the Random class then generate random numbers via object e.g: import java.util.Random; Random RD=new Random(); X[i]=RD.nextInt(); b. Define static void method called PrintData that takes 1D integer array then prints the array data. c. Define static double method called Average that takes 1D integer array then returns the average value of passed array elements. d. Inside the main function a. Define an integer 1D array of size 100 called Data b. Call the above methods by passing array Data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
