当前位置:首页 » 翻译 
  • 匿名
关注:1 2013-05-23 12:21

求翻译:The String in the switch expression is compared with the expressions associated with each case label as if the String.equals method were being used. In order for the StringSwitchDemo example to accept any month regardless of case, month is converted to lowercase (with the toLowerCase method), and all the strings associ是什么意思?

待解决 悬赏分:1 - 离问题结束还有
The String in the switch expression is compared with the expressions associated with each case label as if the String.equals method were being used. In order for the StringSwitchDemo example to accept any month regardless of case, month is converted to lowercase (with the toLowerCase method), and all the strings associ
问题补充:

  • 匿名
2013-05-23 12:21:38
在switch表达式的字符串是与每个case标签仿佛String.equals方法是使用相关的表达式进行比较。
  • 匿名
2013-05-23 12:23:18
在开关表示的串与表示比较与每个案件标签相关,好象使用String.equals方法。为了StringSwitchDemo例子能接受任何月不管案件,月被转换成小写(与toLowerCase方法),并且所有串与案件标签相关用小写。
  • 匿名
2013-05-23 12:24:58
串在开关表示与表示比较与每个案件标签相关,好象使用String.equals方法。 为了StringSwitchDemo例子能接受任何月不管案件,月被转换成小写 (以toLowerCase方法),并且所有串与案件标签相关用小写。
  • 匿名
2013-05-23 12:26:38
Switch 表达式中的字符串进行比较,如果正在使用 String.equals 方法了与每个 case 标签相关联的表达式。为了使 StringSwitchDemo 示例接受任何月份考虑大小写,每月将转换为小写 (使用 toLowerCase 方法),并与案例是小写的标签关联的所有字符串。
  • 匿名
2013-05-23 12:28:18
在开关表达中的字符串被与与每个案例标签相关的表达比较好象 String.equals 方法被在使用。为了无论案例接受任何月的 StringSwitchDemo 例子,月转换为用小写字母书写 ( 以 toLowerCase 方法 ),与案例相关的所有字符串标签是在用小写字母书写。
 
 
网站首页

湖北省互联网违法和不良信息举报平台 | 网上有害信息举报专区 | 电信诈骗举报专区 | 涉历史虚无主义有害信息举报专区 | 涉企侵权举报专区

 
关 闭