<?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>Function13.net &#187; Java</title>
	<atom:link href="http://www.function13.net/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.function13.net</link>
	<description>A blog about technology and code.</description>
	<lastBuildDate>Tue, 23 Feb 2010 07:37:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sudoku Solver in Java</title>
		<link>http://www.function13.net/2009/12/14/sudoku-solver-in-java/</link>
		<comments>http://www.function13.net/2009/12/14/sudoku-solver-in-java/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 08:52:56 +0000</pubDate>
		<dc:creator>lijamez</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[arc consistency]]></category>
		<category><![CDATA[domain splitting]]></category>
		<category><![CDATA[sudoku]]></category>
		<category><![CDATA[sudoku solver]]></category>

		<guid isPermaLink="false">http://www.function13.net/?p=519</guid>
		<description><![CDATA[
This is a Sudoku solver that uses arc consistency and domain splitting. Also able to tell if a board has no or many solutions.
Download SudokuSolver




			Share this on Reddit
		

			Digg this!
		

			Share this on del.icio.us
		

			Stumble upon something good? Share it on StumbleUpon
		

			Share this on Facebook
		

			Share this on LinkedIn
		

			
		

			Submit this to SlashDot
		

			Blog this on Blogger
		




]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-521" title="SudokuSolver" src="http://www.function13.net/wp-content/SudokuSolver.PNG" alt="SudokuSolver" width="469" height="467" /></p>
<p>This is a Sudoku solver that uses arc consistency and domain splitting. Also able to tell if a board has no or many solutions.</p>
<p><a href="http://www.function13.net/wp-content/SudokuSolver.zip">Download SudokuSolver</a></p>
<p><!-- Begin SexyBookmarks Menu Code --></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced">
<ul class="socials">
<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;title=Sudoku+Solver+in+Java" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;title=Sudoku+Solver+in+Java" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;title=Sudoku+Solver+in+Java" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;title=Sudoku+Solver+in+Java" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;t=Sudoku+Solver+in+Java" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;title=Sudoku+Solver+in+Java&amp;summary=%0D%0A%0D%0AThis%20is%20a%20Sudoku%20solver%20that%20uses%20arc%20consistency%20and%20domain%20splitting.%20Also%20able%20to%20tell%20if%20a%20board%20has%20no%20or%20many%20solutions.%0D%0A%0D%0ADownload%20SudokuSolver&amp;source=Function13.net" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
<li class="sexy-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;title=Sudoku+Solver+in+Java" rel="nofollow" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.function13.net/2009/12/14/sudoku-solver-in-java/&amp;n=Sudoku+Solver+in+Java&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<p><!-- End SexyBookmarks Menu Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.function13.net/2009/12/14/sudoku-solver-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From Java to C++: Similarities and Differences</title>
		<link>http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/</link>
		<comments>http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 00:16:13 +0000</pubDate>
		<dc:creator>lijamez</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lijamez.wordpress.com/?p=87</guid>
		<description><![CDATA[After some fiddling with XCode and C++, I finally got it compiling my Hello World. To my pleasure, the syntax in C++ is somewhat similar with Java, but there are still many differences.

In Java, to start a class we use:
public class fileName
{
}
In a command line C++ program, the following lines are needed:
#include &#60;iostream&#62;
using namespace std;
iostream [...]]]></description>
			<content:encoded><![CDATA[<p>After some fiddling with XCode and C++, I finally got it compiling my Hello World. To my pleasure, the syntax in C++ is somewhat similar with Java, but there are still many differences.</p>
<p><span id="more-87"></span></p>
<p>In Java, to start a class we use:</p>
<blockquote><p>public class fileName<br />
{</p>
<p>}</p></blockquote>
<p>In a command line C++ program, the following lines are needed:</p>
<blockquote><p>#include &lt;iostream&gt;<br />
using namespace std;</p></blockquote>
<p>iostream is needed for input and output, std is needed for basic functions like cout. Some online tutorials use #include &lt;iostream.h&gt; but apparently it&#8217;s deprecated.</p>
<p>The standard structure of a main method is:</p>
<blockquote><p>int main () {</p>
<p>//Neat stuff goes here<br />
return 0;</p>
<p>}</p></blockquote>
<h3>Printing</h3>
<p>To print something, use  &#8220;cout&#8221; (console output?) with the insertion operator &#8220;&lt;&lt;&#8221; like this:</p>
<blockquote><p>cout &lt;&lt; &#8220;Hellos!\n&#8221;;</p>
<p>int a = 1;<br />
int b = 2;<br />
int c = a + b;<br />
cout &lt;&lt; &#8220;Some variable: &#8221; &lt;&lt; c &lt;&lt; &#8220;\n&#8221; ; //Prints c<br />
cout &lt;&lt; &#8220;Some variable: &#8221; &lt;&lt; a+b &lt;&lt; endl ; //Prints the same as above</p></blockquote>
<p>The &#8220;\n&#8221; is needed to start a new line. This replaces System.out.println and System.out.print in Java. Alternatively, you can also use &#8220;endl&#8221; (end line).</p>
<p>The syntax for variable declarations are identical to Java with one small exception:</p>
<blockquote><p>string a = &#8220;Feed me&#8221;; //OK<br />
string a (&#8220;Feed me&#8221;); //OK, Identical to the line above.</p></blockquote>
<h3>Arrays</h3>
<p>Java:</p>
<blockquote><p>int[] myArray1 = new int[5];<br />
int[][] myArray2 = new int[5][6];</p></blockquote>
<p>C++:</p>
<blockquote><p>int myArray1 [5];<br />
int myArray2 [5][6];</p></blockquote>
<h3>Variables</h3>
<p>Now this is pretty cool. When assigning a value to a variable, we can use a literal constant, an octal (base <img src='http://www.function13.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> value, or a hex (base 16) value.</p>
<blockquote><p>int a = 123; //Literal constant<br />
a = 0173; //Octal (Start the variable with a 0)<br />
a = 0&#215;7b; //Hex (Start the variable with 0x)</p></blockquote>
<p>Floating point numbers:</p>
<blockquote><p>double a = 3.141592654<br />
a = 6.02e23 //OK</p></blockquote>
<p>Constants:</p>
<blockquote><p>final int myVar = 100; //Java</p>
<p>const int myVar = 100; //C++</p></blockquote>
<h3>User Input</h3>
<p>Use cin. Here is an example.</p>
<blockquote><p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int main () {<br />
int i;<br />
cout &lt;&lt; &#8220;Enter a value&#8230;&#8221;;<br />
cin &gt;&gt; i;<br />
cout &lt;&lt; &#8220;The value you entered is &#8221; &lt;&lt; i;<br />
return 0;<br />
}</p></blockquote>
<p>Notice the use of the extraction operator &#8220;&gt;&gt;&#8221;. The line &#8220;cin &gt;&gt; i&#8221; takes the user input and stores it in the variable &#8220;i&#8221;. If the user enters a string instead of an integer, the program will not behave as you would expect. In Java, it will simply blow up. Also, the program will take whatever the user types up to a space, a tab, or a new line. Everything after these will be ignored unless you specifically store them in another variable. So, if a user enters a string which could possibly be composed of more than one word, it would be better to use the getline function.</p>
<p>The getline function works like this:</p>
<blockquote><p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int main () {<br />
string i;<br />
cout &lt;&lt; &#8220;Enter a sentence&#8230;\n&#8221;;<br />
getline (cin, i);<br />
cout &lt;&lt; &#8220;You said: &#8221; &lt;&lt; i;<br />
return 0;<br />
}</p></blockquote>
<p>And its output may look something like this:</p>
<blockquote><p>Enter a sentence&#8230;<br />
C++ Rocks!<br />
You said: C++ Rocks!</p></blockquote>
<h3>Control Structures</h3>
<p>If, while, do while, and for statements are identical to Java. <img src='http://www.function13.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Functions</h3>
<p>Because C++ has a 1-pass compiler, any additional functions (a.k.a. &#8220;methods&#8221; in Java) must be declared before the main function.</p>
<p>For example, this will work:</p>
<blockquote><p><span class="prep">#include &lt;iostream&gt;</span><br />
<span class="kw">using</span> <span class="kw">namespace</span> std;</p>
<p><span class="kw">int</span> addition (<span class="kw">int</span> a, <span class="kw">int</span> b)<br />
{<br />
<span class="kw">int</span> r;<br />
r=a+b;<br />
<span class="kw">return</span> (r);<br />
}</p>
<p><span class="kw">int</span> main ()<br />
{<br />
<span class="kw">int</span> z;<br />
z = addition (5,3);<br />
cout &lt;&lt; <span class="str">&#8220;The result is &#8220;</span> &lt;&lt; z;<br />
<span class="kw">return</span> 0;<br />
}</p></blockquote>
<p>And this will not:</p>
<blockquote><p><span class="prep">#include &lt;iostream&gt;</span><br />
<span class="kw">using</span> <span class="kw">namespace</span> std;</p>
<p><span class="kw">int</span> addition (<span class="kw">int</span> a, <span class="kw">int</span> b)<br />
{<br />
<span class="kw">int</span> r;<br />
r=a+b;<br />
<span class="kw">return</span> (r);<br />
}</p>
<p><span class="kw">int</span> main ()<br />
{<br />
<span class="kw">int</span> z;<br />
z = addition (5,3);<br />
cout &lt;&lt; <span class="str">&#8220;The result is &#8220;</span> &lt;&lt; z;<br />
<span class="kw">return</span> 0;<br />
}</p></blockquote>
<h3>Classes</h3>
<p>A piece of sample code:</p>
<blockquote><p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>class Point {<br />
int x, y;<br />
public:<br />
Point (int, int);<br />
void setPoint(int, int);<br />
void printPoint() {<br />
cout &lt;&lt; &#8220;( &#8221; &lt;&lt; x &lt;&lt; &#8221; , &#8221; &lt;&lt; y &lt;&lt; &#8221; )&#8221; &lt;&lt; endl;<br />
}<br />
};</p>
<p>Point::Point (int a, int b) {<br />
x = a;<br />
y = b;<br />
}</p>
<p>void Point::setPoint(int a, int b) {<br />
x = a;<br />
y = b;<br />
}</p>
<p>int main() {</p>
<p>Point foo(1,2);<br />
foo.printPoint();<br />
return 0;<br />
}</p></blockquote>
<p>This piece of code has an object with a constructor, two functions, and the main method creates one instance of the object.</p>
<p><!-- Begin SexyBookmarks Menu Code --></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced">
<ul class="socials">
<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;title=From+Java+to+C%2B%2B%3A+Similarities+and+Differences" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;title=From+Java+to+C%2B%2B%3A+Similarities+and+Differences" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;title=From+Java+to+C%2B%2B%3A+Similarities+and+Differences" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;title=From+Java+to+C%2B%2B%3A+Similarities+and+Differences" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;t=From+Java+to+C%2B%2B%3A+Similarities+and+Differences" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;title=From+Java+to+C%2B%2B%3A+Similarities+and+Differences&amp;summary=After%20some%20fiddling%20with%20XCode%20and%20C%2B%2B%2C%20I%20finally%20got%20it%20compiling%20my%20Hello%20World.%20To%20my%20pleasure%2C%20the%20syntax%20in%20C%2B%2B%20is%20somewhat%20similar%20with%20Java%2C%20but%20there%20are%20still%20many%20differences.%0A%0A%0A%0AIn%20Java%2C%20to%20start%20a%20class%20we%20use%3A%0Apublic%20class%20fileName%0A%7B%0A%0A%7D%0AIn%20a%20command%20line%20C%2B%2B%20program%2C%20the%20following%20lines&amp;source=Function13.net" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
<li class="sexy-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;title=From+Java+to+C%2B%2B%3A+Similarities+and+Differences" rel="nofollow" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/&amp;n=From+Java+to+C%2B%2B%3A+Similarities+and+Differences&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<p><!-- End SexyBookmarks Menu Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.function13.net/2008/08/24/from-java-to-c-similarities-and-differences/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quizzicle: A Java Math Quiz Generator</title>
		<link>http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/</link>
		<comments>http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 04:34:40 +0000</pubDate>
		<dc:creator>lijamez</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lijamez.wordpress.com/?p=77</guid>
		<description><![CDATA[
Here is a quick Java application I whipped up. Quizzicle is a command line application that generates random math equations. You can choose an arithmetic operation, the number of questions, the number of digits in the question, and if negative numbers or zeros are allowed. Javadoc included.
Update 1.1:

Adds a Timer
Adds Logging (writing to a file)
Various [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.function13.net/wp-content/quizzicle.png"><img class="aligncenter size-full wp-image-474" title="quizzicle" src="http://www.function13.net/wp-content/quizzicle.png" alt="quizzicle" width="500" height="330" /></a></p>
<p>Here is a quick Java application I whipped up. Quizzicle is a command line application that generates random math equations. You can choose an arithmetic operation, the number of questions, the number of digits in the question, and if negative numbers or zeros are allowed. Javadoc included.</p>
<p><a href="http://www.function13.net/wp-content/quizzicle-options.png"><img class="aligncenter size-full wp-image-478" title="quizzicle-options" src="http://www.function13.net/wp-content/quizzicle-options.png" alt="quizzicle-options" width="465" height="265" /></a><strong>Update 1.1:</strong></p>
<ul>
<li>Adds a Timer</li>
<li>Adds Logging (writing to a file)</li>
<li>Various other minor features</li>
</ul>
<p>I did not plan to release this one so you may see a few hacks.</p>
<p><a href="http://www.filedropper.com/quizzicle11"></a><a href="http://www.function13.net/wp-content/Quizzicle1_1.zip">Download Quizzicle 1.1</a></p>
<p><!-- Begin SexyBookmarks Menu Code --></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced">
<ul class="socials">
<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;title=Quizzicle%3A+A+Java+Math+Quiz+Generator" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;title=Quizzicle%3A+A+Java+Math+Quiz+Generator" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;title=Quizzicle%3A+A+Java+Math+Quiz+Generator" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;title=Quizzicle%3A+A+Java+Math+Quiz+Generator" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;t=Quizzicle%3A+A+Java+Math+Quiz+Generator" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;title=Quizzicle%3A+A+Java+Math+Quiz+Generator&amp;summary=%0D%0A%0D%0AHere%20is%20a%20quick%20Java%20application%20I%20whipped%20up.%20Quizzicle%20is%20a%20command%20line%20application%20that%20generates%20random%20math%20equations.%20You%20can%20choose%20an%20arithmetic%20operation%2C%20the%20number%20of%20questions%2C%20the%20number%20of%20digits%20in%20the%20question%2C%20and%20if%20negative%20numbers%20or%20zeros%20are%20allowed.%20Javadoc%20included.%0D%0A%0D%0AU&amp;source=Function13.net" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
<li class="sexy-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;title=Quizzicle%3A+A+Java+Math+Quiz+Generator" rel="nofollow" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/&amp;n=Quizzicle%3A+A+Java+Math+Quiz+Generator&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<p><!-- End SexyBookmarks Menu Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.function13.net/2008/07/26/quizzicle-a-java-math-quiz-generator/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing the Eclipse IDE</title>
		<link>http://www.function13.net/2008/07/15/install-eclipse-on-windows/</link>
		<comments>http://www.function13.net/2008/07/15/install-eclipse-on-windows/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 03:59:45 +0000</pubDate>
		<dc:creator>lijamez</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lijamez.wordpress.com/?p=46</guid>
		<description><![CDATA[


This guide will show beginner programmers how to set up and install JDK and the Eclipse IDE. I will be installing JDK 6 Update 7 and Eclipse 3.4.0 Ganymede.


Get JDK
Mac Users: Skip this as you already have JDK. Do a system update to check if you have latest one.
You will need to install JDK first [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.function13.net/wp-content/eclipse-ganymede.png"><img class="aligncenter size-full wp-image-476" title="eclipse-ganymede" src="http://www.function13.net/wp-content/eclipse-ganymede.png" alt="eclipse-ganymede" width="455" height="295" /></a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p>This guide will show beginner programmers how to set up and install <a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29">JDK</a> and the <a href="http://en.wikipedia.org/wiki/Eclipse_ide">Eclipse IDE</a>. I will be installing JDK 6 Update 7 and Eclipse 3.4.0 Ganymede.</p>
<p><span id="more-46"></span></p>
<p style="text-align:center;">
<h3>Get JDK</h3>
<p>Mac Users: Skip this as you already have JDK. Do a system update to check if you have latest one.</p>
<p>You will need to install JDK first by going to <a href="http://java.sun.com/javase/downloads/index.jsp">Java SE Downloads</a> and choose &#8220;Java x Update y&#8221; where x is the latest version of Java and y is the latest non-beta update. (Do not get the version with NetBeans or Java EE unless you know what youre doing.) Installation is straightforward, but it may take some time. Go grab a coffee.</p>
<h3>Get Eclipse</h3>
<p>You can go to <a href="http://www.eclipse.org/downloads/">Eclipse.org&#8217;s Download Section</a> and choose &#8220;Eclipse IDE for Java Developers.&#8221; Extract the contents of the zip file to wherever you wish.</p>
<h4>Setting Up</h4>
<p style="text-align:center;"><a href="http://lijamez.files.wordpress.com/2008/07/01.png"><img class="alignnone size-full wp-image-53" src="http://lijamez.files.wordpress.com/2008/07/01.png" alt="" width="510" height="209" /></a><a href="http://lijamez.files.wordpress.com/2008/07/00.png"> </a></p>
<p>Once you fire up Eclipse, it will ask you for a path to your workspace. This folder will contain all of the projects you create with Eclipse as subdirectories.</p>
<p style="text-align:center;"><a href="http://lijamez.files.wordpress.com/2008/07/02.png"><img class="alignnone size-full wp-image-54" src="http://lijamez.files.wordpress.com/2008/07/02.png" alt="" width="510" height="382" /></a></p>
<p>Once that&#8217;s done Eclipse will greet you with a Welcome window. Just click on &#8220;Go to Workbench&#8221; at the far right and you&#8217;ll never need to see this screen again.</p>
<p><a href="http://lijamez.files.wordpress.com/2008/07/03.png"><img class="aligncenter size-full wp-image-55" src="http://lijamez.files.wordpress.com/2008/07/03.png" alt="" width="509" height="439" /></a></p>
<p>Now we will make sure that Eclipse is using the Java SDK you just downloaded. Click Window &gt; Preferences. Then, on the left panel expand Java, then click on Installed JREs. Make sure that the version of Java you installed is there and checked. If there are multiple items then, unless you plan to use them all, check only the version you downloaded.</p>
<p>If your version is not there, then click Add, choose Standard VM, and click next. Browse to X:\Program Files\Java\jreX.X.X_XX and everything should be filled out automatically. Click Finish.</p>
<p><a href="http://lijamez.files.wordpress.com/2008/07/06.png"><img class="aligncenter size-full wp-image-71" src="http://lijamez.files.wordpress.com/2008/07/06.png" alt="" width="510" height="421" /></a></p>
<p>Also make sure that the compliance level is set up properly. Click &#8220;Compiler&#8221; under &#8220;Java&#8221; and check the Compiler Compliance Level. If you are using JDK 6, then choose &#8220;1.6&#8243; in the drop down menu. If you are using JDK 5 for some reason, then choose 1.5. Etc.</p>
<h3>Testing Eclipse</h3>
<p><a href="http://lijamez.files.wordpress.com/2008/07/04.png"><img class="aligncenter size-full wp-image-56" src="http://lijamez.files.wordpress.com/2008/07/04.png" alt="" width="500" height="500" /></a></p>
<p>Click File &gt; New &gt; Java Project and let&#8217;s make a simple HelloWorld project. Notice the workspace path and JRE that is being used. Then click Finish.</p>
<p><a href="http://lijamez.files.wordpress.com/2008/07/05.png"><img class="aligncenter size-full wp-image-57" src="http://lijamez.files.wordpress.com/2008/07/05.png" alt="" width="500" height="690" /></a></p>
<p>Create a class HelloWorld by clicking on the HelloWorld project folder on the left and clicking the &#8220;C+&#8221; icon in the toolbar. Name the new class HelloWorld and click Finish.</p>
<p>Paste the following code into HelloWorld.java.</p>
<blockquote><p>public class HelloWorld<br />
{<br />
public static void main (String[] args)<br />
{<br />
System.out.println(&#8220;Hello Eclipse!&#8221;);<br />
}<br />
}</p></blockquote>
<p>Then, click Run in the toolbar. The console at the bottom should say &#8220;Hello Eclipse!&#8221;</p>
<h3>Additional Resources:</h3>
<p><a href="http://www.drjava.org/">Dr. Java</a> is a slimmer IDE that focuses on only the essentials. Try it if you need a more lightweight IDE. Also available for Mac OS X.</p>
<p><a href="http://java.sun.com/javase/6/docs/">The Java SE 6 Documentation</a></p>
<p><!-- Begin SexyBookmarks Menu Code --></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced">
<ul class="socials">
<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;title=Installing+the+Eclipse+IDE" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;title=Installing+the+Eclipse+IDE" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;title=Installing+the+Eclipse+IDE" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;title=Installing+the+Eclipse+IDE" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;t=Installing+the+Eclipse+IDE" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;title=Installing+the+Eclipse+IDE&amp;summary=%0D%0A%0D%0A%0D%0A%0D%0AThis%20guide%20will%20show%20beginner%20programmers%20how%20to%20set%20up%20and%20install%20JDK%20and%20the%20Eclipse%20IDE.%20I%20will%20be%20installing%20JDK%206%20Update%207%20and%20Eclipse%203.4.0%20Ganymede.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AGet%20JDK%0D%0AMac%20Users%3A%20Skip%20this%20as%20you%20already%20have%20JDK.%20Do%20a%20system%20update%20to%20check%20if%20you%20have%20latest%20one.%0D%0A%0D%0AYou%20will%20need%20to&amp;source=Function13.net" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
<li class="sexy-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;title=Installing+the+Eclipse+IDE" rel="nofollow" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.function13.net/2008/07/15/install-eclipse-on-windows/&amp;n=Installing+the+Eclipse+IDE&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<p><!-- End SexyBookmarks Menu Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.function13.net/2008/07/15/install-eclipse-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
