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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started