public String monthString(int monthNumber){ switch(monthNumber){ case 1: return "january"; default: return "hfkhv"; } }也可以在循环中return 返回值给方法 |
public String monthString(int monthNumber){ switch(monthNumber){ case 1: return "january"; default: return "hfkhv"; } }也可以在循环中return 返回值给方法 |