Question: Using java, question 9 and 10 Assume a class called Car has a double variable called Speed. Write a set method for th variable. 9)
Using java, question 9 and 10 Assume a class called Car has a double variable called Speed. Write a set method for th variable. 9) 10) Given the following method: public static int mathltUp(double x) int y (int) (x " 2) y/-12; y++i return y- In the main method of the program the following declaration and call is double a 6.0; mathltUp(a); What is the value of the variable 'a' after the call to the method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
