Question: Please answer using **JAVA** Use the following code in problems 3-6 public class Tester public public static void main(String[] args) { double all= new double[1000);

Please answer using **JAVA**

Please answer using **JAVA** Use the following code in problems 3-6 public

class Tester public public static void main(String[] args) { double all= new

Use the following code in problems 3-6 public class Tester public public static void main(String[] args) { double all= new double[1000); a[2] = 19, Car myCar = new Car(30); //sets mpg to 30 int tz=46; String s="Pontotoc"; methodl(tz a myCar, s); System.out.println(tz); System.out.println(a[2]; System.out.println(myCar.mpg): System.out.println(s); } public static void methodl (int p, double g0, Car theCar, String str) { p=800; g[2] =-17.002; theCar.mpg=25; str='Field Creek"; } 3. What is printed by System.out.println(t); ? 4. What is printed by System.out.prinin(a[2]); ? 3. What is printed by System.out.println(mCar.mpg); ? 2 Name: ID: A 6. What is printed by System.out.println(s); ? 7. Suppose the signature of a method is as follows: private int bitWalker(int[]0 x) In the bitWalker method how would you determine how many rows are in the x array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!