int i = 0; switch (i) { case 0: System.out.println("zero"); case 1: System.out.println("one"); case 2: System.out.println("two"); break; case 3: System.out.println("three"); // break; //要加吗 } 1) zero 2) zero,one 3) zero,one,two 4) zero,one,two,three 答案应该是zero把最后一个要加break结束吗
|