<?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>Code Comments &#187; Java</title>
	<atom:link href="http://code.hammerpig.com/category/java/feed" rel="self" type="application/rss+xml" />
	<link>http://code.hammerpig.com</link>
	<description>Tips and short tutorials on various programming technologies</description>
	<lastBuildDate>Fri, 23 Dec 2011 23:09:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple Multi-Threading Example in Java</title>
		<link>http://code.hammerpig.com/simple-multithreading-java.html</link>
		<comments>http://code.hammerpig.com/simple-multithreading-java.html#comments</comments>
		<pubDate>Mon, 24 May 2010 22:48:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=650</guid>
		<description><![CDATA[This week I spent some time figuring out how to use multiple threads in Java. Well, really, I just learned the basics. But it was enough to get a functional example working, and it took me less time than I anticipated. I won&#8217;t go into a lot of detail on how to do this because [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/simple-multithreading-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile Java with External Jar Files at Command Line</title>
		<link>http://code.hammerpig.com/compile-java-external-jar-files-command-line.html</link>
		<comments>http://code.hammerpig.com/compile-java-external-jar-files-command-line.html#comments</comments>
		<pubDate>Fri, 05 Feb 2010 19:05:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=616</guid>
		<description><![CDATA[If you want to compile Java files at the command line, you use the javac command.

javac ../Java/*.java

This will create a .class file for every .java file that could be compiled.
But let&#8217;s say you are referencing one of many external Java libraries that are packaged as .jar files. You probably don&#8217;t want to just stick the [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/compile-java-external-jar-files-command-line.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Find Interquartile Range in Java</title>
		<link>http://code.hammerpig.com/find-interquartile-range-java.html</link>
		<comments>http://code.hammerpig.com/find-interquartile-range-java.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:08:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=594</guid>
		<description><![CDATA[In this post, I explained how to find quartiles in a list of numbers. As a slight add-on to that functionality, you can easily get the interquartile range. This basically means that you are finding the difference between the first and third quartiles.
So I use the code to compute the quartiles and then use simple [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/find-interquartile-range-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get Quartiles in Java</title>
		<link>http://code.hammerpig.com/quartiles-java.html</link>
		<comments>http://code.hammerpig.com/quartiles-java.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:04:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=592</guid>
		<description><![CDATA[For a brief overview of what quartiles are, you might read the Wikipedia page on this topic.
Basically, what it means is that if you were to break a list of numbers into four even parts, these would be the values that would separate them. But it gets a little complicated when your list doesn&#8217;t break [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/quartiles-java.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Java: Is an Integer an Odd Number?</title>
		<link>http://code.hammerpig.com/java-integer-odd-number.html</link>
		<comments>http://code.hammerpig.com/java-integer-odd-number.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 21:37:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=590</guid>
		<description><![CDATA[This is a pretty simple tip, but I still thought I would share it for anyone who is interested. To find out whether an integer is odd, you can use the modulo operator. This operator tells you the remainder after dividing the number by some other number. If you divide any integer by 2, you [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/java-integer-odd-number.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Java, Use StringBuilder When Constructing Large Strings</title>
		<link>http://code.hammerpig.com/java-stringbuilder-constructing-large-strings.html</link>
		<comments>http://code.hammerpig.com/java-stringbuilder-constructing-large-strings.html#comments</comments>
		<pubDate>Fri, 18 Sep 2009 18:36:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=581</guid>
		<description><![CDATA[This bit of advice is not new to me nor to the software development community. But recently I had one of those experiences where I put together a quick solution (to keep my code as simple as possible), and later I ran into a performance problem. And it was because I was violating this principle.
I [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/java-stringbuilder-constructing-large-strings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Sort Strings w/ Numbers in Java</title>
		<link>http://code.hammerpig.com/sort-strings-numbers-java.html</link>
		<comments>http://code.hammerpig.com/sort-strings-numbers-java.html#comments</comments>
		<pubDate>Wed, 19 Aug 2009 22:09:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=564</guid>
		<description><![CDATA[In this post, I explain the problem of sorting strings that contain numbers. If you just sort values using the default approach, it will not work properly. For example, it will sort &#8220;a10&#8243; before &#8220;a2&#8243; even though in your application you may want it to consider the alphabetic characters separately from the numeric ones in [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/sort-strings-numbers-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Run an R Script from the Command Line</title>
		<link>http://code.hammerpig.com/run-script-command-line.html</link>
		<comments>http://code.hammerpig.com/run-script-command-line.html#comments</comments>
		<pubDate>Wed, 12 Aug 2009 19:39:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=561</guid>
		<description><![CDATA[I&#8217;m writing this post because I just spent a couple of hours banging my head against the wall, trying to figure out how to run an R script from the command line. It was working if I simply ran it at the command line. But when I try to run the same command from Java [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/run-script-command-line.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Invoke External Application in Java</title>
		<link>http://code.hammerpig.com/invoke-external-application-java.html</link>
		<comments>http://code.hammerpig.com/invoke-external-application-java.html#comments</comments>
		<pubDate>Thu, 04 Jun 2009 22:27:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=541</guid>
		<description><![CDATA[I recently had a scenario where part of what I wanted to do was in Java, and the other part was in an application that was written in Python. Rather than than rewrite my entire code base in one language or the other, I wanted to find a (quick and dirty) way to invoke the [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/invoke-external-application-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Way to Compute Median in Java</title>
		<link>http://code.hammerpig.com/simple-compute-median-java.html</link>
		<comments>http://code.hammerpig.com/simple-compute-median-java.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 22:33:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://code.hammerpig.com/?p=536</guid>
		<description><![CDATA[There is no way that I know of to find the median of a list of numbers in the Java framework. The median is the middle value. If there is an even number of values, the median is the middle of these two numbers. Below is a method, along with a supporting method and some [...]]]></description>
		<wfw:commentRss>http://code.hammerpig.com/simple-compute-median-java.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

