<?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>philihp.com &#187; Example</title>
	<atom:link href="http://www.philihp.com/blog/tag/example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philihp.com/blog</link>
	<description>I do things, and then I tell the internet about them.</description>
	<lastBuildDate>Mon, 06 Feb 2012 05:40:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Static Java List Instantiation</title>
		<link>http://www.philihp.com/blog/2009/static-java-list-instantiation/</link>
		<comments>http://www.philihp.com/blog/2009/static-java-list-instantiation/#comments</comments>
		<pubDate>Sat, 16 May 2009 18:54:03 +0000</pubDate>
		<dc:creator>philihp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[List]]></category>

		<guid isPermaLink="false">http://www.philihp.com/blog/?p=417</guid>
		<description><![CDATA[But it recently occurred to me that with variable-length methods, I can simply call asList like this:

<pre>List&#60;String&#62; strings = Arrays.asList(foo","bar");</pre>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been out of the loop on straight Java programming for a while, so this is probably obvious to a lot of people, and has been for a long time. But on the off chance that I&#8217;m not the only other idiot out there, I&#8217;ll post this.</p>
<p>The old way of instantiating a <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html">List</a> in Java was like this:</p>
<pre name="code" class="java:nocontrols">List strings = Arrays.asList(new String[]{"foo","bar"});</pre>
<p>In Java 5, templates were introduced, so I had to change to doing this:</p>
<pre name="code" class="java:nocontrols">List&lt;String&gt; strings = Arrays.asList(new String[]{"foo","bar"});</pre>
<p>It just occurred to me that with variable-length methods, I can simply call asList like this:</p>
<pre name="code" class="java:nocontrols">List&lt;String&gt; strings = Arrays.asList("foo","bar");</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.philihp.com/blog/2009/static-java-list-instantiation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

