【单选题】(选择结构)下面这段代码运行结果为( ) int day=3; switch(day){ case 1: case 3: case 5: MessageBox.Show(“学钢琴!”); break; case 2: MessageBox.Show(“学英语!”); break ; default: MessageBox.Show(“休息哦!”); break; }
【单选题】运行下面这段代码的结果为 int day = 3; switch (day) { case 1: case 3: case 5: System.out.println ("学钢琴!"); break; case 2: System.out.println ("学英语!"); default: System.out.println ("去必胜客吃饭!"); }
【简答题】代码功能:判断当前日期是星期几 switch (new Date().getDay()) { case 0: day = "星期天"; _______; case 1: day = "星期一"; break; case 2: day = "星期二"; break; case 3: day = "星期三"; break; case 4: day = "星期四"; break; case 5: day...
【单选题】下面这段代码的运行结果为 ( ) 。 Int day=3 ; switch(day){ case 1 : case 3 : case 5 : System . out . println(“ 学钢琴 !”) ; break ; case 2 : System . out . println(“ 学英语 !”) ; default : System . out . println(“ ...