<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for the Kelmi</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Tue, 07 Oct 2008 02:59:43 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Removing doubles from a list</title>
	<link>http://www.bytemycode.com/snippets/snippet/806/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/806/comments/</comments>
	<pubDate>Sat, 10 May 2008 11:10:37 +0000</pubDate>
	<dc:creator>Kelmi</dc:creator>
	<category>doubles, List, REMOVE, Set</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/806/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sat. May. 10th, 2008  11:10 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/806/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/Kelmi/" title="Beginner">Kelmi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/doubles">doubles</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/List">List</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/REMOVE">REMOVE</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Set">Set</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/806/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -1
			<p>The method 'removeDoubles' uses a HashSet to remove double elements from a list without creating another list. The first occurrences of the multiple elements are kept, others will be removed. The order of the list will be preserved. The parameter list's iterator must support remove. Example of use is given in the main-method.</p>
		]]>
	</description>
</item>
	</channel>
</rss>