<?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>Likegyldig.net &#187; Software</title>
	<atom:link href="http://likegyldig.net/blog/tag/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://likegyldig.net/blog</link>
	<description>Hardware, software and general ramblings of a listless student</description>
	<lastBuildDate>Fri, 18 Jun 2010 14:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OOP with Java (TDT4100): Exercise 1</title>
		<link>http://likegyldig.net/blog/2009/04/22/oop-with-java-tdt4100-exercise-1/</link>
		<comments>http://likegyldig.net/blog/2009/04/22/oop-with-java-tdt4100-exercise-1/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 21:25:16 +0000</pubDate>
		<dc:creator>Lars Martin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://likegyldig.net/blog/?p=22</guid>
		<description><![CDATA[Given you managed to get Eclipse, JExercise and the preconfigured project running properly (described in my previous post), you should be ready to tackle the first exercise. I was planning on giving a more thorough review and explanation of the code, but unfortunately because of time constraints, I won&#8217;t be able to. I will, however, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-24" title="Exercise 1" src="http://likegyldig.net/blog/wp-content/uploads/2009/03/oving11.png" alt="Exercise 1" width="150" height="150" />Given you managed to get Eclipse, JExercise and the preconfigured project running properly (described in <a title="Object oriented programming with Java" href="http://likegyldig.net/blog/2009/03/09/object-oriented-programming-with-java/">my previous post</a>), you should be ready to tackle the first exercise. I was planning on giving a more thorough review and explanation of the code, but unfortunately because of time constraints, I won&#8217;t be able to. I will, however, try to comment parts where the code gets difficult to follow.</p>
<p><span id="more-22"></span></p>
<p><strong>Part 1: A simple Hello World application</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="java5" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">oving1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloWorld <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #006600; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003399; font-weight: bold;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello World!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Part 2: An application that finds the larger of two numbers</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="java5" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">oving1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Larger <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #006600; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// Takes the first (0) and second (1) command line arguments and compares what number is the largest</span>
		<span style="color: #006600; font-weight: bold;">int</span> i = <span style="color: #003399; font-weight: bold;">Integer</span>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #006600; font-weight: bold;">int</span> j = <span style="color: #003399; font-weight: bold;">Integer</span>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>= j<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003399; font-weight: bold;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000;  font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003399; font-weight: bold;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>j<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #666666; font-style: italic;">/*
		 * Can also be done as an inline if-else:
		 * Basically it says: If i is larger or equal to j, then print i, else print j
		 *  System.out.println(i &amp;gt;= j ? i : j);
		 */</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Part 3: An application that that sums integers read from System.in</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="java5" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">oving1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Scanner</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Sum <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #006600; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// Creates a new Scanner object to read input from the user through System.in</span>
		<span style="color: #003399; font-weight: bold;">Scanner</span> sc = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399; font-weight: bold;">Scanner</span><span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">System</span>.<span style="color: #006633;">in</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Create a new integer to hold our sum</span>
		<span style="color: #006600; font-weight: bold;">int</span> sum = <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Loop through the input until we reach the end of the line</span>
		<span style="color: #000000;  font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>sc.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// Try to convert each character in the input to an integer and add it to our sum</span>
			<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #006600; font-weight: bold;">int</span> n = <span style="color: #003399; font-weight: bold;">Integer</span>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>sc.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				sum += n<span style="color: #339933;">;</span>
			<span style="color: #666666; font-style: italic;">// Catch the exception that occurs if converting is impossible, print what has happened and end the program</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">NumberFormatException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #003399; font-weight: bold;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">return</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #666666; font-style: italic;">// Print the sum</span>
		<span style="color: #003399; font-weight: bold;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;The sum is: &quot;</span> + sum<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Part 4: Finding elements in an array</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
</pre></td><td class="code"><pre class="java5" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">oving1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ArrayMethods1 <span style="color: #009900;">&#123;</span>
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Takes an array and an integer as parameters and returns the index of where the number is *first* found.
	 * Returns -1 if the number is not present.
	 * @param array
	 * @param num
	 * @return
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #006600; font-weight: bold;">int</span> indexOf <span style="color: #009900;">&#40;</span><span style="color: #006600; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> array, <span style="color: #006600; font-weight: bold;">int</span> num<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-weight: bold;">int</span> result = -<span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Loop through the array using a for-loop</span>
		<span style="color: #000000;  font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #006600; font-weight: bold;">int</span> i = <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> array.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i++<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// Set the index and break out of the loop if we've found a match</span>
			<span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>array<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> == num<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				result = i<span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #666666; font-style: italic;">// Return</span>
		<span style="color: #000000; font-weight: bold;">return</span> result<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Takes an array and a String-object as parameters and returns the index of the *last* occurence of the given String.
	 * Returns -1 if the String is not present.
	 * @param array
	 * @param text
	 * @return
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #006600; font-weight: bold;">int</span> lastIndexOf <span style="color: #009900;">&#40;</span><span style="color: #003399; font-weight: bold;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> array, <span style="color: #003399; font-weight: bold;">String</span> text<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-weight: bold;">int</span> result = -<span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Loop through the array using a for-loop, starting from the back</span>
		<span style="color: #000000;  font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #006600; font-weight: bold;">int</span> i = array.<span style="color: #006633;">length</span> - <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>= <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i--<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// Compare each String and break through the loop if we find an occurence</span>
			<span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>array<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>text<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				result = i<span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #666666; font-style: italic;">// Return</span>
		<span style="color: #000000; font-weight: bold;">return</span> result<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Takes an array of integers as the first parameter and an integer as the second.
	 * The method searches through the array starting at the index given as the second paramter and returns the index of the lowest value.
	 * @param array
	 * @param startIndex
	 * @return
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #006600; font-weight: bold;">int</span> indexOfSmallest <span style="color: #009900;">&#40;</span><span style="color: #006600; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> array, <span style="color: #006600; font-weight: bold;">int</span> startIndex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// Return -1 if the start index is greater than the total number of elements in the array</span>
		<span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>startIndex <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>= array.<span style="color: #006633;">length</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">return</span> -<span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Set the first value</span>
		<span style="color: #006600; font-weight: bold;">int</span> result = startIndex<span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// Search through the array starting at startIndex and get the index of the lowest value</span>
		<span style="color: #000000;  font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #006600; font-weight: bold;">int</span> i = startIndex<span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> array.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i++<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000000;  font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>array<span style="color: #009900;">&#91;</span>result<span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> array<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> result = i<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #666666; font-style: italic;">// Return</span>
		<span style="color: #000000; font-weight: bold;">return</span> result<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Closing comments:</strong><br />
That&#8217;s the solution for exercise 1. It might be hard to follow without the more concrete assignment descriptions for each part, but I hope the learning curve hasn&#8217;t been too steep and that you&#8217;ve learned something useful out of these four snippets. It should give you an idea of how what Java syntax looks like, and we&#8217;ve also scratched the surface of four important tools of Java:</p>
<ul>
<li>The while-loop</li>
<li>The for-loop</li>
<li>Arrays</li>
<li>Simple logic (if-then-else)</li>
</ul>
<p>Hopefully, I&#8217;ll have exercise 2 drafted in the near future. Good luck further!</p>
]]></content:encoded>
			<wfw:commentRss>http://likegyldig.net/blog/2009/04/22/oop-with-java-tdt4100-exercise-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object oriented programming with Java</title>
		<link>http://likegyldig.net/blog/2009/03/09/object-oriented-programming-with-java/</link>
		<comments>http://likegyldig.net/blog/2009/03/09/object-oriented-programming-with-java/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 19:50:36 +0000</pubDate>
		<dc:creator>Lars Martin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[tdt4100]]></category>

		<guid isPermaLink="false">http://likegyldig.net/blog/?p=9</guid>
		<description><![CDATA[One of my classes this spring is &#8220;TDT4100: Object oriented programming&#8221;. Through Java, they teach from basic to intermediate object oriented programming techniques. I&#8217;ve already completed a similar subject on my previous school, so this is basically just repetition, but it&#8217;s been a while since I&#8217;ve coded anything, making it worthwhile after all. As I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-19 alignleft" title="Java" src="http://likegyldig.net/blog/wp-content/uploads/2009/03/java_embedded_os-150x150.jpg" alt="Java" width="150" height="150" />One of my classes this spring is &#8220;TDT4100: Object oriented programming&#8221;. Through Java, they teach from basic to intermediate object oriented programming techniques. I&#8217;ve already completed a similar subject on my previous school, so this is basically just repetition, but it&#8217;s been a while since I&#8217;ve coded anything, making it worthwhile after all. As I&#8217;m fairly familiar with what&#8217;s being discussed and taught during the semester, I thought I&#8217;d share some of the exercises and explain a possible approach and solution for each.</p>
<p><span id="more-9"></span></p>
<p><strong>Prerequsities</strong></p>
<p>The class operates with the students using the <a class="packageTitle" href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR2/eclipse-rcp-ganymede-SR2-linux-gtk.tar.gz">Eclipse for RCP/Plug-in Developers (Ganymede, SR2)</a> and a plugin for Eclipse called <em>JExercise</em>. <em>JExercise</em> is an in-house developed plugin from <a title="Norsk Teknisk- Naturvitenskapelige Universitet" href="http://www.ntnu.no" target="_blank">NTNU</a> which runs through your code by using tests that checks the output of your source and gives you a score based on these results.</p>
<p><strong>Get started</strong></p>
<ul>
<li>Download and install the Eclipse version mentioned above, then download <em><a title="JExercise" href="http://www.likegyldig.net/java/dropins.zip">JExercise</a></em> and a preconfigured worspace called <em><a title="ovinger workspace" href="http://www.likegyldig.net/java/ovingsprosjekt.zip">ovinger</a></em>.</li>
<li>Install JExercise by extracting <a title="JExercise" href="http://www.likegyldig.net/java/dropins.zip"><em>dropins.zip</em></a> into the root of your Eclipse folder.<img class="size-full wp-image-16 alignleft" title="Importing a project..." src="http://likegyldig.net/blog/wp-content/uploads/2009/03/import.png" alt="Importing a project..." width="297" height="475" /></li>
<li>Import the preconfigured workspace by right-clicking in the Package view to the left in your Eclipse IDE, select <em>Import&#8230;</em>, choose <em>Archive File</em> in the new dialog, browse to the folder where <a title="ovinger workspace" href="http://www.likegyldig.net/java/ovingsprosjekt.zip"><em>ovingsprosjekt.zip</em></a> is stored and finish importing by clicking <em>Finish</em>.</li>
</ul>
<p>If everything worked out well, you should have a browseable tree view to the left in your Eclipse IDE with <em>ovinger</em> as the topmost folder.</p>
<p>Good luck further, and I&#8217;ll have the first exercise ready soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://likegyldig.net/blog/2009/03/09/object-oriented-programming-with-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
