Question: In Java language, please 4. No Parameter Method (10 Points) 1. Create a method that 1. Takes has no parameters 2. Returns a Random integer

In Java language, please
4. No Parameter Method (10 Points) 1. Create a method that 1. Takes has no parameters 2. Returns a Random integer between 1-100. (Use Magic.random() here) 2. Call this method from the main 5. Multi parameter Methods (10 points) 1. Create a method that will calculate the mass of a fluid. This method should: 1. Takes in two parameters (as doubles), density and volume. 2. Return (a double) the mass based on the density times the volume. 2. Call this method from the main and print out the value. 6. Array Methods (10 Points) 1. Create a method that will take an array of integers as a parameter and return the median element from the list. 2. You can use either a for loop or while loop in your example. 3. Call this method from the main and print out the value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
