Search for question
Question

2. Use a method (or methods) from the Java Math class to calculate the minimum value of four int variables a, b, c, d and assign that minimum to a variable

called smallest. You can write as many lines of Java as you wish - it may be possible to do it with just one! You do not need to write a full program. You do not need to declare smallest. You do not need to declare or give values to a, b, c, d. Write your code here: 3. Assume you are writing code inside a Java method that has two formal parameters, x and y, both of which are type double. The method is to return an int. Write the java statement(s) to calculate and return the int value of x/y. You do not need to write the whole method. Write your code here: 2.2 - java code variables given . what is value after this code run ? 2.3 - 2.2 - java string variables given . what is value after this code run ?