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

求翻译:The implementation of the method is straightforward, but it does not compile because the greater than operator (>) applies only to primitive types such as short, int, double, long, float, byte, and char. You cannot use the > operator to compare objects. To fix the problem, use a type parameter bounded by the Comparable是什么意思?

待解决 悬赏分:1 - 离问题结束还有
The implementation of the method is straightforward, but it does not compile because the greater than operator (>) applies only to primitive types such as short, int, double, long, float, byte, and char. You cannot use the > operator to compare objects. To fix the problem, use a type parameter bounded by the Comparable
问题补充:

  • 匿名
2013-05-23 12:21:38
该方法的实现很简单,但它并不能编译,因为大于运算符( > )仅适用于基本类型,如short,int和双,长整型,浮点,字节和字符。
  • 匿名
2013-05-23 12:23:18
方法的实施是直接的,但是它不编写,因为伟大比操作员(>)仅适用于原始类型例如短, int,双,长,浮游物、字节和炭灰。您不可能使用>比较对象的操作员。要解决问题,使用一个类型Comparable接口一定的参量:
  • 匿名
2013-05-23 12:24:58
方法的实施是直接的,但它不编写,因为大于操作员 (>) 仅适用于原始类型例如短小、int,双,长,浮游物、字节和炭灰。 您不可能使用>比较对象的操作员。 要解决问题,使用一个类型Comparable接口一定的参量:
  • 匿名
2013-05-23 12:26:38
该方法的实现很简单,但是它无法编译,因为越大比运算符 (>) 只适用于基元类型 (如短,int,双人间,久了,浮,字节和 char。您不能使用 > 运算符进行比较的对象。要修复此问题,使用北达的可比较的 接口的类型参数:
  • 匿名
2013-05-23 12:28:18
方法的执行是简单明了的,但是它不编辑因为大于操作员 (>) 仅适用于原始的类型例如短暂, int,两倍,渴望,浮漂,字节,字符型。你不能使用>比较物体的操作员。解决问题,使用一个类型参数在可媲美的界面旁边跳跃:
 
 
网站首页

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

 
关 闭