<?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: Remove an Item from an Array in Java</title>
	<atom:link href="http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html/feed" rel="self" type="application/rss+xml" />
	<link>http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html</link>
	<description>Tips and short tutorials on various programming technologies</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:17:05 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Geek</title>
		<link>http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html/comment-page-1#comment-784</link>
		<dc:creator>Geek</dc:creator>
		<pubDate>Tue, 24 May 2011 03:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=255#comment-784</guid>
		<description>list.remove(item);...............?????????

this is error prone in case list is accessed by an iterator simultaneously. Code is not suitable for multi-threaded environment.</description>
		<content:encoded><![CDATA[<p>list.remove(item);&#8230;&#8230;&#8230;&#8230;&#8230;?????????</p>
<p>this is error prone in case list is accessed by an iterator simultaneously. Code is not suitable for multi-threaded environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html/comment-page-1#comment-405</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 16 Apr 2010 18:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=255#comment-405</guid>
		<description>You&#039;d do it about the same way. First you&#039;d need to convert the array to an ArrayList. Then you&#039;d need to get the index (indices) of the objects. You can do this using the indexOf method on ArrayList. However, make sure you override the equals method in the TetrixBox class. See this post http://code.hammerpig.com/find-an-object-in-an-arraylist-with-java.html. Then remove the objects based on the indices.

Hopefully I&#039;m understanding your question correctly. Please let me know if this helped.</description>
		<content:encoded><![CDATA[<p>You&#8217;d do it about the same way. First you&#8217;d need to convert the array to an ArrayList. Then you&#8217;d need to get the index (indices) of the objects. You can do this using the indexOf method on ArrayList. However, make sure you override the equals method in the TetrixBox class. See this post <a href="http://code.hammerpig.com/find-an-object-in-an-arraylist-with-java.html" rel="nofollow">http://code.hammerpig.com/find-an-object-in-an-arraylist-with-java.html</a>. Then remove the objects based on the indices.</p>
<p>Hopefully I&#8217;m understanding your question correctly. Please let me know if this helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html/comment-page-1#comment-403</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Thu, 15 Apr 2010 19:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=255#comment-403</guid>
		<description>and what if i want to remove indexes from a non-primitive type? (yes i know String isn&#039;t techniqually a primitive data type)

Say i have an array of type &quot;TetrisBox&quot;, and suddenly 10 of these indexes or elements, i don&#039;t want anymore, i want to get rid of them (i&#039;m sure you can see the reason for this). how would i do that? because i obviously can&#039;t pass them as a string?</description>
		<content:encoded><![CDATA[<p>and what if i want to remove indexes from a non-primitive type? (yes i know String isn&#8217;t techniqually a primitive data type)</p>
<p>Say i have an array of type &#8220;TetrisBox&#8221;, and suddenly 10 of these indexes or elements, i don&#8217;t want anymore, i want to get rid of them (i&#8217;m sure you can see the reason for this). how would i do that? because i obviously can&#8217;t pass them as a string?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html/comment-page-1#comment-313</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 14 Dec 2009 22:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=255#comment-313</guid>
		<description>You should be able to do it with a multidimensional array. You&#039;d just treat each element as an array. Have you tried and it didn&#039;t work? If so, can you post a (simple) code snippet?</description>
		<content:encoded><![CDATA[<p>You should be able to do it with a multidimensional array. You&#8217;d just treat each element as an array. Have you tried and it didn&#8217;t work? If so, can you post a (simple) code snippet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rynaard</title>
		<link>http://code.hammerpig.com/remove-an-item-from-an-array-in-java.html/comment-page-1#comment-308</link>
		<dc:creator>Rynaard</dc:creator>
		<pubDate>Sat, 12 Dec 2009 17:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=255#comment-308</guid>
		<description>Nice clean code, but what if I wanted to remove a row from a multi-dimenensional String array</description>
		<content:encoded><![CDATA[<p>Nice clean code, but what if I wanted to remove a row from a multi-dimenensional String array</p>
]]></content:encoded>
	</item>
</channel>
</rss>

