Question: D Question 2 What is the value of counter variable after line 21 has executed: package app; public class Controller { public static void main(String[]
D Question 2 What is the value of counter variable after line 21 has executed: package app; public class Controller { public static void main(String[] args) { double fuelMixture = 1.2; int counter = 10; double result = setMixture(counter, fue lMixture); 10 11 12 13 14 15 16 System.out.println("Result = " + result); counter = counter + 10; }//end main 18 19 public static double setMixture(int counter, double y) { double fue lMixture = y + counter; counter =3; return fue Mixture; } 21 22 23 24 25 26 }//end class O 20 O 10 O 13 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
