What is the easiest way to get the answer for the following code??? Since we�ll be short of time , how is it best to work out this problem and find the result values? write on paper or??? class Testjranch { public static void main(String args[ ] ) { int k = 0; int m = 0; for ( int i = 0; i <= 3; i++) { k++; System.out.println( k + " k after k++, " + m ); if ( i == 2) { continue; } m++; System.out.println( k + " m after m++," + m ); } System.out.println( k + " outside for loop, " + m ); } }
Bhuvana Dhruva
Greenhorn
Joined: Sep 11, 2000
Posts: 28
posted
0
hi, i think the best way is to work it out on paper. i don't think that u will lose much time in that and also can reduce errors, things will be more clear. bhuvana