<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java Enumeration and Iterators</title>
	<atom:link href="http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 00:56:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rgz</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-15035</link>
		<dc:creator>rgz</dc:creator>
		<pubDate>Wed, 16 Sep 2009 23:36:01 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-15035</guid>
		<description>I just figured out that we can do this for exactly the same cost and the intention read a bit more clearly.&lt;br&gt;&lt;br&gt;for(Enumeration e = foos.getEnumeration(); e.hasMoreElements(); Foo foo = e.nextElement()){&lt;br&gt; // process foo&lt;br&gt;}</description>
		<content:encoded><![CDATA[<p>I just figured out that we can do this for exactly the same cost and the intention read a bit more clearly.</p>
<p>for(Enumeration e = foos.getEnumeration(); e.hasMoreElements(); Foo foo = e.nextElement()){<br /> // process foo<br />}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nevor</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-14494</link>
		<dc:creator>Nevor</dc:creator>
		<pubDate>Mon, 24 Aug 2009 10:17:50 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14494</guid>
		<description>and a O(1) random access</description>
		<content:encoded><![CDATA[<p>and a O(1) random access</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nevor</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-14492</link>
		<dc:creator>Nevor</dc:creator>
		<pubDate>Mon, 24 Aug 2009 10:14:42 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14492</guid>
		<description>Method calls are clearly not &quot;1 operation&quot; and furthermore you forget about the item.next() which is called at each loop. Thus, with a collection that has a O(1) get size, the for loop is more efficient than the iterator.</description>
		<content:encoded><![CDATA[<p>Method calls are clearly not &#8220;1 operation&#8221; and furthermore you forget about the item.next() which is called at each loop. Thus, with a collection that has a O(1) get size, the for loop is more efficient than the iterator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yonas</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-13678</link>
		<dc:creator>yonas</dc:creator>
		<pubDate>Mon, 20 Jul 2009 22:51:47 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13678</guid>
		<description>v.hasNext() and v.hasMoreElements() are not equal to 1 operation, each.&lt;br&gt;&lt;br&gt;If you break it down to CPU cycles needed to run those functions, I guarantee you that they are AT LEAST as many CPU cycles as a for loop.&lt;br&gt;&lt;br&gt;Moreover, the compiler might simplify things like &quot;int i = 0&quot; to one operation.</description>
		<content:encoded><![CDATA[<p>v.hasNext() and v.hasMoreElements() are not equal to 1 operation, each.</p>
<p>If you break it down to CPU cycles needed to run those functions, I guarantee you that they are AT LEAST as many CPU cycles as a for loop.</p>
<p>Moreover, the compiler might simplify things like &#8220;int i = 0&#8243; to one operation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharmesh Gupta</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-11783</link>
		<dc:creator>Dharmesh Gupta</dc:creator>
		<pubDate>Tue, 26 May 2009 00:49:57 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-11783</guid>
		<description>First, Enumerator was introduced in jdk 1.2. now we are using iterator.&lt;br&gt;The place where we can use both use iteartor.&lt;br&gt;&lt;br&gt;By using Enumerator we can only retrieve values, means forward only.&lt;br&gt;But by using Iterator, we can retrieve, delete, or change the values.&lt;br&gt;&lt;br&gt;So, good to use Iterator.</description>
		<content:encoded><![CDATA[<p>First, Enumerator was introduced in jdk 1.2. now we are using iterator.<br />The place where we can use both use iteartor.</p>
<p>By using Enumerator we can only retrieve values, means forward only.<br />But by using Iterator, we can retrieve, delete, or change the values.</p>
<p>So, good to use Iterator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharmesh Gupta</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-11782</link>
		<dc:creator>Dharmesh Gupta</dc:creator>
		<pubDate>Tue, 26 May 2009 00:48:29 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-11782</guid>
		<description>First, Enumerator was introduced in jdk 1.2. now we are using iterator.&lt;br&gt; The place where we can use both use iteartor.&lt;br&gt;&lt;br&gt;By using Enumerator we can only retrieve values, means forward only.&lt;br&gt;But by using Iterator, we can retrieve, delete, or change the values.&lt;br&gt;&lt;br&gt;So, good to use Iterator.</description>
		<content:encoded><![CDATA[<p>First, Enumerator was introduced in jdk 1.2. now we are using iterator.<br /> The place where we can use both use iteartor.</p>
<p>By using Enumerator we can only retrieve values, means forward only.<br />But by using Iterator, we can retrieve, delete, or change the values.</p>
<p>So, good to use Iterator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohan</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-11376</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Wed, 13 May 2009 20:56:04 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-11376</guid>
		<description>dayNames.add(”Saturday”};---&gt;error</description>
		<content:encoded><![CDATA[<p>dayNames.add(”Saturday”};&#8212;&gt;error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swetha</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-10838</link>
		<dc:creator>swetha</dc:creator>
		<pubDate>Mon, 27 Apr 2009 05:34:37 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-10838</guid>
		<description>Very Usefull and clear explanation</description>
		<content:encoded><![CDATA[<p>Very Usefull and clear explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lahar</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-8598</link>
		<dc:creator>Lahar</dc:creator>
		<pubDate>Tue, 17 Feb 2009 13:16:04 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-8598</guid>
		<description>Enumeration is same as Iterator.&lt;br&gt;and working of both are same but Main differnce is Iterator has remove().&lt;br&gt;remove()  removes the last object taken using next().</description>
		<content:encoded><![CDATA[<p>Enumeration is same as Iterator.<br />and working of both are same but Main differnce is Iterator has remove().<br />remove()  removes the last object taken using next().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gunjan garg</title>
		<link>http://www.tech-recipes.com/rx/1181/java-enumeration-and-iterators/comment-page-1/#comment-8008</link>
		<dc:creator>gunjan garg</dc:creator>
		<pubDate>Sat, 31 Jan 2009 12:56:34 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-8008</guid>
		<description>what is the difference in Enumeration and Iterator?if they are same then why we read these two different concepts</description>
		<content:encoded><![CDATA[<p>what is the difference in Enumeration and Iterator?if they are same then why we read these two different concepts</p>
]]></content:encoded>
	</item>
</channel>
</rss>
