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

求翻译:The goal of printList is to print a list of any type, but it fails to achieve that goal — it prints only a list of Object instances; it cannot print List, List, List, and so on, because they are not subtypes of List. To write a generic printList method, use List:是什么意思?

待解决 悬赏分:1 - 离问题结束还有
The goal of printList is to print a list of any type, but it fails to achieve that goal — it prints only a list of Object instances; it cannot print List, List, List, and so on, because they are not subtypes of List. To write a generic printList method, use List:
问题补充:

  • 匿名
2013-05-23 12:21:38
的printList的目标是要打印的任何类型的列表,但它未能实现这一目标 - 它打印Object实例只有一个列表;
  • 匿名
2013-05-23 12:23:18
printList的目标是打印任何类型名单,但是它不达到目标—它打印对象事例仅名单;因为他们不是List,子型它不可能打印List, List, List,等等。要写一个普通printList方法,使用List< ?> :
  • 匿名
2013-05-23 12:24:58
printList的目标是打印任何类型名单,但它不达到目标-它打印对象事例仅名单; 因为他们不是List,子型它不可能打印List, List, List,等等。 要写一个普通printList方法,使用List< ?> :
  • 匿名
2013-05-23 12:26:38
打印列表的目标是要打印列表中的任何类型,但它无法实现这一目标 — — 它将打印仅列出了对象实例 ;它不能打印列表 、 列表、 列表 ,等等,因为它们不是列表 的子类型。若要编写泛型打印列表的方法,请使用列表 :
  • 匿名
2013-05-23 12:28:18
printList 的目标是打印任何类型的一份列表,但是它无法完成那个目标 - 它仅打印物体的一份列表示例;不能打印列表,列出,列出,等等,因为他们不是列表的子类型。写一种通用 printList 方法,使用列表<?>:
 
 
网站首页

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

 
关 闭