<?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"
	>
<channel>
	<title>Comments on: Beginner Java Exercise with Data Types</title>
	<atom:link href="http://blog.tmorris.net/beginner-java-exercise-with-data-types/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/</link>
	<description>The weblog of Tony Morris</description>
	<pubDate>Sat, 19 May 2012 02:29:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-89740</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Tue, 31 May 2011 23:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-89740</guid>
		<description>Works fine for me dude.

&lt;pre&gt;
$ javac -J-version &#038;&#038; md5sum NoneOrOne.java &#038;&#038; javac NoneOrOne.java &#038;&#038; date
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
d1bdc0922337ec3075142f2b4549eeaf  NoneOrOne.java
Wed Jun  1 09:01:03 EST 2011
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Works fine for me dude.</p>
<pre>
$ javac -J-version &#038;&#038; md5sum NoneOrOne.java &#038;&#038; javac NoneOrOne.java &#038;&#038; date
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
d1bdc0922337ec3075142f2b4549eeaf  NoneOrOne.java
Wed Jun  1 09:01:03 EST 2011
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: israel</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-89737</link>
		<dc:creator>israel</dc:creator>
		<pubDate>Tue, 31 May 2011 22:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-89737</guid>
		<description>when I run this program by a eclipse it does not work properly. that means it throws  the error.</description>
		<content:encoded><![CDATA[<p>when I run this program by a eclipse it does not work properly. that means it throws  the error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-46001</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 17 Sep 2010 16:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-46001</guid>
		<description>While I was a bit playing with the code I determined another optimization for the toString() method which in my opinion should not just be for debugging ;)

Here it is:
&lt;code&gt;
@Override
public String toString() {
    final StringBuilder s = new StringBuilder();
    s.append("[");
    if (!isEmpty()) {
        s.append(get(defaultThrowingThunk).toString());
    }
    return s.append("]").toString();
}
&lt;/code&gt;
whereby &lt;code&gt;defaultThrowingThunk&lt;/code&gt; is just a &lt;code&gt;Thunk&lt;/code&gt; object which throws an exception within methode &lt;code&gt;value()&lt;/code&gt;.

Greetings
Andreas

P.S.: what is the correct markup value for &#60;code&#62; tag for java code highlighting?</description>
		<content:encoded><![CDATA[<p>While I was a bit playing with the code I determined another optimization for the toString() method which in my opinion should not just be for debugging <img src='http://blog.tmorris.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Here it is:<br />
<code><br />
@Override<br />
public String toString() {<br />
    final StringBuilder s = new StringBuilder();<br />
    s.append("[");<br />
    if (!isEmpty()) {<br />
        s.append(get(defaultThrowingThunk).toString());<br />
    }<br />
    return s.append("]&#8220;).toString();<br />
}<br />
</code><br />
whereby <code>defaultThrowingThunk</code> is just a <code>Thunk</code> object which throws an exception within methode <code>value()</code>.</p>
<p>Greetings<br />
Andreas</p>
<p>P.S.: what is the correct markup value for &lt;code&gt; tag for java code highlighting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-45997</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 17 Sep 2010 14:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-45997</guid>
		<description>Hi @all,

first of all I would like to thank you for this great exercise. I implemented all the methods and wrote same additional tests using TestNG which all works fine.

1/ What should returned if in method app none() is supplied as parameter? 

2/ Is there a provided solution to this or can you just send it to me via Email?

Greetings
Andreas</description>
		<content:encoded><![CDATA[<p>Hi @all,</p>
<p>first of all I would like to thank you for this great exercise. I implemented all the methods and wrote same additional tests using TestNG which all works fine.</p>
<p>1/ What should returned if in method app none() is supplied as parameter? </p>
<p>2/ Is there a provided solution to this or can you just send it to me via Email?</p>
<p>Greetings<br />
Andreas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: czar</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-42105</link>
		<dc:creator>czar</dc:creator>
		<pubDate>Sun, 20 Jun 2010 14:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-42105</guid>
		<description>Don't get wat u guys r trying to do here I am a rookie in java cn u guyz break it down</description>
		<content:encoded><![CDATA[<p>Don&#8217;t get wat u guys r trying to do here I am a rookie in java cn u guyz break it down</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-40531</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Thu, 13 May 2010 00:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-40531</guid>
		<description>Well woopsy doopsy indeed. Thanks Kristian.</description>
		<content:encoded><![CDATA[<p>Well woopsy doopsy indeed. Thanks Kristian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian Domagala</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-40530</link>
		<dc:creator>Kristian Domagala</dc:creator>
		<pubDate>Wed, 12 May 2010 23:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-40530</guid>
		<description>1/ Perhaps there is confusion caused by the superfluous &#60;B&#62; type declaration in the filter method?</description>
		<content:encoded><![CDATA[<p>1/ Perhaps there is confusion caused by the superfluous &lt;B&gt; type declaration in the filter method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-40529</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Wed, 12 May 2010 23:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-40529</guid>
		<description>Hi Misha,
1/ I'm not sure I understand this question. The filter function takes a predicate (A -&#62; Boolean) and if the list is non-empty, ensures that the element satisfies this predicate. In any other case, an empty list is returned.

2/ Woops, yes. Corrected, thanks.</description>
		<content:encoded><![CDATA[<p>Hi Misha,<br />
1/ I&#8217;m not sure I understand this question. The filter function takes a predicate (A -&gt; Boolean) and if the list is non-empty, ensures that the element satisfies this predicate. In any other case, an empty list is returned.</p>
<p>2/ Woops, yes. Corrected, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Misha</title>
		<link>http://blog.tmorris.net/beginner-java-exercise-with-data-types/#comment-40509</link>
		<dc:creator>Misha</dc:creator>
		<pubDate>Wed, 12 May 2010 08:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=760#comment-40509</guid>
		<description>Thanks!  Enjoyed solving this.
Two questions:  
1/ What is the function of the &lt;B&gt; type in the definition of the filter method?
2/ In the example output on 122, why should it not output '[it's even]'?</description>
		<content:encoded><![CDATA[<p>Thanks!  Enjoyed solving this.<br />
Two questions:<br />
1/ What is the function of the <b> type in the definition of the filter method?<br />
2/ In the example output on 122, why should it not output &#8216;[it's even]&#8216;?</b></p>
]]></content:encoded>
	</item>
</channel>
</rss>

