switch循环出错
public class Sw {public static void main(String[] args) {
String day= "星期一";
switch(day)
{
case "星期六":
System.out.println("聚餐");
case "星期日":
System.out.println("逛街");
default:
System.out.println("去上课");
}
}
}
为什么switch(day)错了,请大仙们帮助!!