Java SE 7 Programmer (1Z0-803)
© examsiri.com
Question : 4 of 7
Marks:
+1,
-0
Given:
public class MyLoop {
  public static void main(String[] args) {
   String[] sa = {"tom ", "jerry "};
  for (int x = 0; x < 3; x++) {
   for (String s : sa) {
    System.out.print(x + " " + s);
    if (x == 1) {
     break;
    }
   }
  }
 }
}
Go to Question: