Given this main method:
1 public static void main(String[] args)2 {3 int i;4 String debug;5 for (i=0; i<3; i++)6 {7 switch (i * i)8 {9 case 0:10 debug = “first”;11 break;12 case 1: case 2:13 debug = “second” ;14 case 3:15 debug = “third”;16 default:17 System.out.println(“In default”);18 } // end switch19 } // end for20 System.out.println(“i = “ + i);21 } // end mainTrace the code using either the short form or the long form. To help you get started, here’s the trace setup. For the short form, you won’t need the line# column.
line# | i | debug | output |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.