Question: public class MyFive { public static void main(String[] args) { short i; short j = 0; for (i = k; i > 6; i -=
public class MyFive { public static void main(String[] args) { short i; short j = 0; for (i = k; i > 6; i -= 1) { // line x // j++; } System.out.println("j = " + j); } } What value should replace KK in line x to cause j = 5 to be output? a. -1 b. 1 c. 5 d. 8 e. 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
