<?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>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Onon</title><link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-16804</link> <dc:creator>Onon</dc:creator> <pubDate>Fri, 28 Oct 2011 17:11:15 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-16804</guid> <description>@Markus*Le gasp !</description> <content:encoded><![CDATA[<p>@Markus</p><p>*Le gasp !</p> ]]></content:encoded> </item> <item><title>By: begineer</title><link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-14518</link> <dc:creator>begineer</dc:creator> <pubDate>Sun, 10 Apr 2011 06:18:08 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-14518</guid> <description>For Example there is a word (or) pdf (or) excel  (or) PPT which has many pages .I need a java that will create a thumbnail for 1 page of those documents. Please let me know if Possible. Thanks in advance...</description> <content:encoded><![CDATA[<p>For Example there is a word (or) pdf (or) excel  (or) PPT which has many pages .I need a java that will create a thumbnail for 1 page of those documents.<br /> Please let me know if Possible.<br /> Thanks in advance&#8230;</p> ]]></content:encoded> </item> <item><title>By: Tech Tutorials</title><link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-14194</link> <dc:creator>Tech Tutorials</dc:creator> <pubDate>Sat, 26 Feb 2011 06:20:53 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-14194</guid> <description>great code collection.I specially liked XML parsing java code.</description> <content:encoded><![CDATA[<p>great code collection.I specially liked XML parsing java code.</p> ]]></content:encoded> </item> <item><title>By: Shubhangi</title><link>http://viralpatel.net/blogs/2009/05/20-useful-java-code-snippets-for-java-developers.html/comment-page-1#comment-13093</link> <dc:creator>Shubhangi</dc:creator> <pubDate>Mon, 13 Sep 2010 18:51:30 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1274#comment-13093</guid> <description>Hi, I am searching for a code snippet that would convert a malformed XML string to a well formed one. Please let me know if any of you have it or a link to one such code snippet. Thanks</description> <content:encoded><![CDATA[<p>Hi,<br /> I am searching for a code snippet that would convert a malformed XML string to a well formed one. Please let me know if any of you have it or a link to one such code snippet.<br /> Thanks</p> ]]></content:encoded> </item> <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 <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></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> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 10:15:57 -->
