iterator()方法由哪個class implemes?

請問...iterator( )方法是由哪個class implements出來的啊? 我只知它是Collection介面訂出來的....

麻煩各位了..

2 Answers

Rating
  • 10 years ago
    Favorite Answer

    這是你要的嗎???

    java.util.Collection implements java.lang.Iterable<T>

    關於介面 Iterable<T>請看API~

    2010-04-28 03:31:12 補充:

    請參考:http://caterpillar.onlyfun.net/Gossip/DesignPatter...

    • Login to reply the answers
  • 10 years ago

    iterator( ) 是 Iterator 介面定義的

    所有實作 Iterator interface 均實作各自的 iterator()

    • Login to reply the answers
Still have questions? Get your answers by asking now.