<?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: A Generic Way To Create a Collection</title>
	<atom:link href="http://www.objectpartners.com/2009/06/23/a-generic-way-to-create-a-collection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.objectpartners.com/2009/06/23/a-generic-way-to-create-a-collection/</link>
	<description>Object Partners Inc.</description>
	<lastBuildDate>Wed, 25 Aug 2010 12:45:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: George</title>
		<link>http://www.objectpartners.com/2009/06/23/a-generic-way-to-create-a-collection/comment-page-1/#comment-240</link>
		<dc:creator>George</dc:creator>
		<pubDate>Wed, 24 Jun 2009 18:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.objectpartners.com/?p=1187#comment-240</guid>
		<description>If you don&#039;t mind that the list is read-only (for example parameters to a function) you can use the built in java.util.Arrays class:

List stringList = Arrays.asList(&quot;s1&quot;, &quot;s2&quot;, &quot;s3&quot;);
List intList = Arrays.asList(1, 2, 3, 4, 5, 6);

If you use this a lot you can statically import the &#039;asList&#039; method to clean up your code</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t mind that the list is read-only (for example parameters to a function) you can use the built in java.util.Arrays class:</p>
<p>List stringList = Arrays.asList(&#8220;s1&#8243;, &#8220;s2&#8243;, &#8220;s3&#8243;);<br />
List intList = Arrays.asList(1, 2, 3, 4, 5, 6);</p>
<p>If you use this a lot you can statically import the &#8216;asList&#8217; method to clean up your code</p>
]]></content:encoded>
	</item>
</channel>
</rss>
