How many times is 2 printed as part of output?
public class ScopeTest
{
int z;
public static void main(String[] args){ String[] table = {"aa", "bb", "cc"};
for (String ss: table)
{
int ii = 0;
while (ii < table.length)
{
System.out.println(ss + ", " + ii);
ii++;
}
}
}
}
Reveal answer
Fill a bubble to check yourself