<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/popular/language/java</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 20:27:51 GMT</pubDate>
<item>
<title>(Java) Reading a Properties File - springett</title>
<link>http://snipplr.com/view/1920/reading-a-properties-file/</link>
<description><![CDATA[ <p>reading in a properties file from the file system</p> ]]></description>
<pubDate>Thu, 04 Jan 2007 03:36:09 GMT</pubDate>
<guid>http://snipplr.com/view/1920/reading-a-properties-file/</guid>
</item>
<item>
<title>(Java) Spring and Hibernate simple configuration - narkisr</title>
<link>http://snipplr.com/view/5459/spring-and-hibernate-simple-configuration/</link>
<description><![CDATA[ <p>This spring context configures a simple hibernate session (for annotated classes).</p> ]]></description>
<pubDate>Mon, 17 Mar 2008 11:49:49 GMT</pubDate>
<guid>http://snipplr.com/view/5459/spring-and-hibernate-simple-configuration/</guid>
</item>
<item>
<title>(Java) Writing a Properties File - springett</title>
<link>http://snipplr.com/view/1921/writing-a-properties-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Jan 2007 03:38:29 GMT</pubDate>
<guid>http://snipplr.com/view/1921/writing-a-properties-file/</guid>
</item>
<item>
<title>(Java) Java - ScreenShot - whitetiger</title>
<link>http://snipplr.com/view/1582/java--screenshot/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:54:44 GMT</pubDate>
<guid>http://snipplr.com/view/1582/java--screenshot/</guid>
</item>
<item>
<title>(Java) Read a web page with Java - gdvickery</title>
<link>http://snipplr.com/view/13033/read-a-web-page-with-java/</link>
<description><![CDATA[ <p>Connects to a web page, reads in the content and strips whitespace.</p> ]]></description>
<pubDate>Thu, 12 Mar 2009 11:16:40 GMT</pubDate>
<guid>http://snipplr.com/view/13033/read-a-web-page-with-java/</guid>
</item>
<item>
<title>(Java) String Validation - pablazo</title>
<link>http://snipplr.com/view/2637/string-validation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 May 2007 01:44:45 GMT</pubDate>
<guid>http://snipplr.com/view/2637/string-validation/</guid>
</item>
<item>
<title>(Java) Super fast FileServlet - peceps</title>
<link>http://snipplr.com/view/42311/super-fast-fileservlet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 15 Oct 2010 02:41:21 GMT</pubDate>
<guid>http://snipplr.com/view/42311/super-fast-fileservlet/</guid>
</item>
<item>
<title>(Java) Bubblesort - dalcacer</title>
<link>http://snipplr.com/view/29608/bubblesort/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Mar 2010 10:55:08 GMT</pubDate>
<guid>http://snipplr.com/view/29608/bubblesort/</guid>
</item>
<item>
<title>(Java) Sending Email On Android By SMTP (Gmail) - abwaters</title>
<link>http://snipplr.com/view/16645/sending-email-on-android-by-smtp-gmail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 04 Jul 2009 23:59:35 GMT</pubDate>
<guid>http://snipplr.com/view/16645/sending-email-on-android-by-smtp-gmail/</guid>
</item>
<item>
<title>(Java) Read files from jar (getResourceAsStream) 2 - resurge</title>
<link>http://snipplr.com/view/10483/read-files-from-jar-getresourceasstream-2/</link>
<description><![CDATA[ <p>Found an easier way to read files from an executable jar than my other snippet.

The '/' is what tells java to go looking in the jar that's running instead of outside of it.</p> ]]></description>
<pubDate>Sun, 14 Dec 2008 17:26:29 GMT</pubDate>
<guid>http://snipplr.com/view/10483/read-files-from-jar-getresourceasstream-2/</guid>
</item>
<item>
<title>(Java) Install maven artifact in repository - maxkar</title>
<link>http://snipplr.com/view/9986/install-maven-artifact-in-repository/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 23 Nov 2008 05:27:30 GMT</pubDate>
<guid>http://snipplr.com/view/9986/install-maven-artifact-in-repository/</guid>
</item>
<item>
<title>(Java) Java download the web page - multani</title>
<link>http://snipplr.com/view/9304/java-download-the-web-page/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 27 Oct 2008 05:26:56 GMT</pubDate>
<guid>http://snipplr.com/view/9304/java-download-the-web-page/</guid>
</item>
<item>
<title>(Java) Time comparation in Java - multani</title>
<link>http://snipplr.com/view/5161/time-comparation-in-java/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 Feb 2008 06:55:19 GMT</pubDate>
<guid>http://snipplr.com/view/5161/time-comparation-in-java/</guid>
</item>
<item>
<title>(Java) Check if a file exists in Java - joaocosta</title>
<link>http://snipplr.com/view/3763/check-if-a-file-exists-in-java/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 22 Sep 2007 09:54:42 GMT</pubDate>
<guid>http://snipplr.com/view/3763/check-if-a-file-exists-in-java/</guid>
</item>
<item>
<title>(Java) Download source files for maven dependencies - ctran</title>
<link>http://snipplr.com/view/3489/download-source-files-for-maven-dependencies/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 08 Aug 2007 12:42:54 GMT</pubDate>
<guid>http://snipplr.com/view/3489/download-source-files-for-maven-dependencies/</guid>
</item>
<item>
<title>(Java) Android check if service running - rockschtar</title>
<link>http://snipplr.com/view/61082/android-check-if-service-running/</link>
<description><![CDATA[ <p>This functions checks if a service is running or not.</p> ]]></description>
<pubDate>Wed, 23 Nov 2011 01:58:56 GMT</pubDate>
<guid>http://snipplr.com/view/61082/android-check-if-service-running/</guid>
</item>
<item>
<title>(Java) read file from URL - hyderai</title>
<link>http://snipplr.com/view/60414/read-file-from-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Nov 2011 14:44:43 GMT</pubDate>
<guid>http://snipplr.com/view/60414/read-file-from-url/</guid>
</item>
<item>
<title>(Java) Android: Download a string from a url - BenClayton</title>
<link>http://snipplr.com/view/49454/android-download-a-string-from-a-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Feb 2011 03:24:06 GMT</pubDate>
<guid>http://snipplr.com/view/49454/android-download-a-string-from-a-url/</guid>
</item>
<item>
<title>(Java) Convenience class for working with Gzip text files. - kubaitis</title>
<link>http://snipplr.com/view/43347/convenience-class-for-working-with-gzip-text-files/</link>
<description><![CDATA[ <p>I wrote this for an enterprise level event logging cluster that has more traffic than Oprah. Has worked great for years of uptime... wish java had a decent bz2 implementation though.</p> ]]></description>
<pubDate>Mon, 01 Nov 2010 03:39:19 GMT</pubDate>
<guid>http://snipplr.com/view/43347/convenience-class-for-working-with-gzip-text-files/</guid>
</item>
<item>
<title>(Java) Matching elements in an array - adkatrit</title>
<link>http://snipplr.com/view/43264/matching-elements-in-an-array/</link>
<description><![CDATA[ <p>compare individual array elements with one another, without doing the same comparison twice (3vs2 then 2vs3).  this reduces the number of iterations by roughly half.  it's still O(n^2), an 1000 member array won't iterate a 1000X1000 times, it will be (1000X999)/2.  efficient!!
an array of 0,1,2,3  will print out the following:
01,02,03,,12,13,2,3
ENJOY MY MATHS</p> ]]></description>
<pubDate>Sat, 30 Oct 2010 02:21:58 GMT</pubDate>
<guid>http://snipplr.com/view/43264/matching-elements-in-an-array/</guid>
</item>
<item>
<title>(Java) Project Euler - Problem 1 - itaiferber</title>
<link>http://snipplr.com/view/40710/project-euler--problem-1/</link>
<description><![CDATA[ <p>The solution to Project Euler [Problem 1](http://projecteuler.net/index.php?section=problems&amp;id=1), written in Java as an example for my AP Computer Science class teaching internship.</p> ]]></description>
<pubDate>Sat, 18 Sep 2010 07:49:26 GMT</pubDate>
<guid>http://snipplr.com/view/40710/project-euler--problem-1/</guid>
</item>
<item>
<title>(Java) E-Mail validation - dalcacer</title>
<link>http://snipplr.com/view/37718/email-validation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 21 Jul 2010 23:40:51 GMT</pubDate>
<guid>http://snipplr.com/view/37718/email-validation/</guid>
</item>
<item>
<title>(Java) Download file via http using Java - anata</title>
<link>http://snipplr.com/view/33805/download-file-via-http-using-java/</link>
<description><![CDATA[ <p>This thread downloads file via url.</p> ]]></description>
<pubDate>Tue, 04 May 2010 03:32:30 GMT</pubDate>
<guid>http://snipplr.com/view/33805/download-file-via-http-using-java/</guid>
</item>
<item>
<title>(Java) programmatically compiling a Java source file - akostajti</title>
<link>http://snipplr.com/view/23982/programmatically-compiling-a-java-source-file/</link>
<description><![CDATA[ <p>this simple snippet compiles a Java source file.</p> ]]></description>
<pubDate>Tue, 01 Dec 2009 09:09:26 GMT</pubDate>
<guid>http://snipplr.com/view/23982/programmatically-compiling-a-java-source-file/</guid>
</item>
<item>
<title>(Java) Shortest Java program to do wget - angusdev</title>
<link>http://snipplr.com/view/21534/shortest-java-program-to-do-wget/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 21 Oct 2009 03:06:36 GMT</pubDate>
<guid>http://snipplr.com/view/21534/shortest-java-program-to-do-wget/</guid>
</item>
</channel>
</rss>