我似乎忘了什么或做错了什么,但是什么?如果我想要说什么怎么办?#34;太小"如果数字小于1?
public static String doStuff(int num) {
String number;
switch (num) {
case 1:
number = "one";
break;
case 2:
number = "two";
break;
case 3:
number = "thee";
break;
case 4:
number = "four";
break;
default:
number = "Not a day";
break;
}
return number;
}