tag:blogger.com,1999:blog-615973148715732292.post7728416204790023829..comments2024-03-11T19:18:56.205-07:00Comments on java explorer: Random Accessjavaexplor03http://www.blogger.com/profile/07455293496498711738noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-615973148715732292.post-38641324524603226912018-07-24T11:04:50.884-07:002018-07-24T11:04:50.884-07:00why kindly explain ?
A List implementation should ...why kindly explain ?<br />A List implementation should implement this interface if, for typical instances of the class, this loop:<br /><br />for (int i=0, n=list.size(); i < n; i++)<br /> list.get(i);<br /><br />runs faster than this loop:<br /><br />for (Iterator i=list.iterator(); i.hasNext(); )<br /> i.next();Anonymoushttps://www.blogger.com/profile/12155159933471529883noreply@blogger.com