<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Green Gem &#187; programming</title>
	<atom:link href="http://agreengem.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://agreengem.com</link>
	<description>Webcomics, java, and life.</description>
	<lastBuildDate>Sat, 04 Apr 2009 00:32:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Find files that contain some text</title>
		<link>http://agreengem.com/2009/03/25/find-files-that-contain-some-text/</link>
		<comments>http://agreengem.com/2009/03/25/find-files-that-contain-some-text/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 23:32:07 +0000</pubDate>
		<dc:creator>Javier C</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[one-liners]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://agreengem.com/?p=37</guid>
		<description><![CDATA[A short one liner to find all files in a directory tree that contain some text. grep -Rl &#8220;text to search&#8221; directory The text to search may be a regular expression as accepted by grep. The directory is the root of the tree you want to search. Hope this is found helpful.]]></description>
			<content:encoded><![CDATA[<p>A short one liner to find all files in a directory tree that contain some text.</p>
<p>grep -Rl &#8220;<em>text to search</em>&#8221; <em>directory</em></p>
<p>The <em>text to search</em> may be a regular expression as accepted by grep. The directory is the root of the tree you want to search.</p>
<p>Hope this is found helpful.</p>
 <img src="http://agreengem.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=37" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://agreengem.com/2009/03/25/find-files-that-contain-some-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add all items in an array to a collection</title>
		<link>http://agreengem.com/2009/02/05/add-all-items-in-an-array-to-a-collection/</link>
		<comments>http://agreengem.com/2009/02/05/add-all-items-in-an-array-to-a-collection/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 18:47:40 +0000</pubDate>
		<dc:creator>Javier C</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[one-liners]]></category>

		<guid isPermaLink="false">http://www.agreengem.com/?p=17</guid>
		<description><![CDATA[So I wanted to add all the items in an array to a collection in Java easily. A look into the util package documentation offered a solution which I now share. yourCollection.addAll(java.util.Arrays.asList(yourArray)); The collection can be any object from the collections framework (List, Set, Queue) and yourArray is the array with the elements to be [...]]]></description>
			<content:encoded><![CDATA[<p>So I wanted to add all the items in an array to a collection in Java easily. A look into the util package documentation offered a solution which I now share.</p>
<pre>yourCollection.addAll(java.util.Arrays.asList(yourArray));</pre>
<p>The collection can be any object from the collections framework (List, Set, Queue) and <code>yourArray</code> is the array with the elements to be added.<br />
If you are using generics, the component type of the array has to be a <a href="http://agreengem.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2phdmEuc3VuLmNvbS9kb2NzL2Jvb2tzL2p2bXMvc2Vjb25kX2VkaXRpb24vaHRtbC9Db25jZXB0cy5kb2MuaHRtbCMxOTY3NA==">assignment compatible</a> with the type of the collection. In other words, if your list is something like List&lt;CharSequence&gt;, then you can add an array of type StringBuffer[], String[], or CharSequence[], but not Long[].</p>
 <img src="http://agreengem.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=17" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://agreengem.com/2009/02/05/add-all-items-in-an-array-to-a-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
