<?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: 20 very useful Java code snippets for Java Developers</title>
	<atom:link href="http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/feed" rel="self" type="application/rss+xml" />
	<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html</link>
	<description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description>
	<lastBuildDate>Tue, 16 Mar 2010 11:57:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bill Bartmann</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-11250</link>
		<dc:creator>Bill Bartmann</dc:creator>
		<pubDate>Wed, 02 Sep 2009 04:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-11250</guid>
		<description>Excellent site, keep up the good work</description>
		<content:encoded><![CDATA[<p>Excellent site, keep up the good work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhukar</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-10699</link>
		<dc:creator>Madhukar</dc:creator>
		<pubDate>Sun, 09 Aug 2009 21:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-10699</guid>
		<description>Tip 5, line #         test.init();  ---&gt; will give a compile error. You need to pass the filestream to the init() function. Otherwise its a good example.</description>
		<content:encoded><![CDATA[<p>Tip 5, line #         test.init();  &#8212;&gt; will give a compile error. You need to pass the filestream to the init() function. Otherwise its a good example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lingam Goud</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-10596</link>
		<dc:creator>Lingam Goud</dc:creator>
		<pubDate>Thu, 06 Aug 2009 06:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-10596</guid>
		<description>Thanks viral , it will helps a lot , hoping for more to come.</description>
		<content:encoded><![CDATA[<p>Thanks viral , it will helps a lot , hoping for more to come.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ali mohammad</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-10274</link>
		<dc:creator>ali mohammad</dc:creator>
		<pubDate>Sat, 25 Jul 2009 09:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-10274</guid>
		<description>thank you sir these are very helping codes for me.</description>
		<content:encoded><![CDATA[<p>thank you sir these are very helping codes for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trollhorn</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-7733</link>
		<dc:creator>Trollhorn</dc:creator>
		<pubDate>Wed, 27 May 2009 06:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-7733</guid>
		<description>Of course it should be a.length, sorry me :-)

a = java.util.Arrays.copyOf(a, a.length * 2 + 1);

A complete method would look similar to this:

private static  void resizeArray(T[] a, int size) {
    if (size &lt; 0) {
        throw new IllegalArgumentException();
    }

    return java.util.Arrays.copyOf(a, size);
}</description>
		<content:encoded><![CDATA[<p>Of course it should be a.length, sorry me :-)</p>
<p>a = java.util.Arrays.copyOf(a, a.length * 2 + 1);</p>
<p>A complete method would look similar to this:</p>
<p>private static  void resizeArray(T[] a, int size) {<br />
    if (size &lt; 0) {<br />
        throw new IllegalArgumentException();<br />
    }</p>
<p>    return java.util.Arrays.copyOf(a, size);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trollhorn</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-7649</link>
		<dc:creator>Trollhorn</dc:creator>
		<pubDate>Tue, 26 May 2009 07:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-7649</guid>
		<description>There is an even better solution for resizing an array:

int[] a = new int[10];

// roughly doubling the array size
a = java.util.Arrays.copyOf(a, a.size * 2 + 1);</description>
		<content:encoded><![CDATA[<p>There is an even better solution for resizing an array:</p>
<p>int[] a = new int[10];</p>
<p>// roughly doubling the array size<br />
a = java.util.Arrays.copyOf(a, a.size * 2 + 1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Patel</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-7608</link>
		<dc:creator>Viral Patel</dc:creator>
		<pubDate>Mon, 25 May 2009 16:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-7608</guid>
		<description>Thanks for the comment.
I will try to compile more snippets for the developers.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment.<br />
I will try to compile more snippets for the developers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rekha</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-7514</link>
		<dc:creator>Rekha</dc:creator>
		<pubDate>Sun, 24 May 2009 05:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-7514</guid>
		<description>Good post!! Nice and handy information.</description>
		<content:encoded><![CDATA[<p>Good post!! Nice and handy information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-7402</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Fri, 22 May 2009 12:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-7402</guid>
		<description>Very Handy &amp; Simple .</description>
		<content:encoded><![CDATA[<p>Very Handy &amp; Simple .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pradeep</title>
		<link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-7378</link>
		<dc:creator>pradeep</dc:creator>
		<pubDate>Fri, 22 May 2009 05:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-7378</guid>
		<description>Hi Viral,

Thank you for compilation of all usefull code snippets.

But it will be more usefull if you can keep them in topics wise.

I do want to look for more from your site.

Thanks,
Pradeep</description>
		<content:encoded><![CDATA[<p>Hi Viral,</p>
<p>Thank you for compilation of all usefull code snippets.</p>
<p>But it will be more usefull if you can keep them in topics wise.</p>
<p>I do want to look for more from your site.</p>
<p>Thanks,<br />
Pradeep</p>
]]></content:encoded>
	</item>
</channel>
</rss>
