public class Test { private static void t3() { int num = 2; switch (num){ case 1: System.out.println("1111"); break; case 2: System.out.println("2222"); break; default: System.out.println("0000"); } } public static void main(String[] args) { t3(); } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)