Проверьте свои знания — 1 вопросов
Вопрос 1 из 1
Дано:
public class Ebb { static int x = 7; public static void main(String[] args) { String s = ""; for (int y = 0; y < 3; y++) { x++; switch (x) { case 8: s += "8 "; case 9: s += "9 "; case 10: { s += "10 "; break; } default: s += "d "; case 13: s += "13 "; } } System.out.println(s); } static { x++; } }
Каков результат?
Выберите один ответ.
8 9 10 10 d 13
8 9 10 d
8 9 10 9 10 10 d 13
Ошибка компиляции
9 10 10 d 13
9 10 d
9 10 10 d