<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>JAVAMARCO</title>
	<atom:link href="http://javamarco.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://javamarco.wordpress.com</link>
	<description>JAVA, J2EE AND MORE</description>
	<lastBuildDate>Sun, 17 Apr 2011 13:47:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='javamarco.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>JAVAMARCO</title>
		<link>http://javamarco.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://javamarco.wordpress.com/osd.xml" title="JAVAMARCO" />
	<atom:link rel='hub' href='http://javamarco.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Random Key Generator http://su.pr/6MXh0P</title>
		<link>http://javamarco.wordpress.com/2011/04/17/random-key-generator/</link>
		<comments>http://javamarco.wordpress.com/2011/04/17/random-key-generator/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 11:52:27 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/2011/04/17/random-key-generator-httpsu-pr6mxh0p/</guid>
		<description><![CDATA[Random Key Generator http://su.pr/6MXh0P<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=49&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Random Key Generator <a href="http://su.pr/6MXh0P" rel="nofollow">http://su.pr/6MXh0P</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=49&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2011/04/17/random-key-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>trying #stumbleupon</title>
		<link>http://javamarco.wordpress.com/2011/04/09/trying-stumbleupon/</link>
		<comments>http://javamarco.wordpress.com/2011/04/09/trying-stumbleupon/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 14:13:58 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/2011/04/09/trying-stumbleupon/</guid>
		<description><![CDATA[trying #stumbleupon<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=48&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>trying #stumbleupon</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=48&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2011/04/09/trying-stumbleupon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse is running in a JRE, but a JDK is required</title>
		<link>http://javamarco.wordpress.com/2009/10/02/eclipse-is-running-in-a-jre-but-a-jdk-is-required/</link>
		<comments>http://javamarco.wordpress.com/2009/10/02/eclipse-is-running-in-a-jre-but-a-jdk-is-required/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 09:29:58 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[eclipse fix]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/2009/10/02/eclipse-is-running-in-a-jre-but-a-jdk-is-required/</guid>
		<description><![CDATA[I have installed maven and everytime eclipse starts in the console appears this error. To solve it just launch eclipse using the -vm parameter, for example: /opt/eclipse/eclipse -vm /usr/lib/jvm/java-1.5.0-sun-1.5.0.19/bin<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=43&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have installed maven and everytime eclipse starts in the console appears this error.<br />
To solve it just launch eclipse using the <strong>-vm</strong> parameter, for example:</p>
<p>/opt/eclipse/eclipse  -vm /usr/lib/jvm/java-1.5.0-sun-1.5.0.19/bin</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=43&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2009/10/02/eclipse-is-running-in-a-jre-but-a-jdk-is-required/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>Liferay, Theme and Velocity variables</title>
		<link>http://javamarco.wordpress.com/2009/04/14/liferay-theme-and-velocity-variables/</link>
		<comments>http://javamarco.wordpress.com/2009/04/14/liferay-theme-and-velocity-variables/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 10:07:57 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[Liferay]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Velocity]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/?p=32</guid>
		<description><![CDATA[Here you have a table of the output of some Velocity variables used in Liferay, I&#8217;ve used the portal_normal.vm to print the value. $portalUtil.getHost($request) &#8211;&#62; localhost $request.getClass().getName() &#8211;&#62;com.liferay.portal.kernel.servlet.ProtectedServletRequest $themeDisplay.getPathThemeRoot() &#8211;&#62; /nameoftheme/ $full_templates_path &#8211;&#62; volkswagenexpeience-theme_SERVLET_CONTEXT_/templates Some interesting links: Themes at Liferay I will update this post as soon as possible because now I can&#8217;t finish it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=32&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here you have a table of the output of some Velocity variables used in Liferay, I&#8217;ve used the portal_normal.vm to print the value.</p>
<ul>
<li>$portalUtil.getHost($request) &#8211;&gt; localhost</li>
<li>$request.getClass().getName() &#8211;&gt;com.liferay.portal.kernel.servlet.ProtectedServletRequest</li>
<li>$themeDisplay.getPathThemeRoot() &#8211;&gt; /nameoftheme/</li>
<li>$full_templates_path &#8211;&gt; volkswagenexpeience-theme_SERVLET_CONTEXT_/templates</li>
</ul>
<p>Some interesting links:<br />
<a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Themes">Themes at Liferay</a></p>
<p>I will update this post as soon as possible because now I can&#8217;t finish it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=32&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2009/04/14/liferay-theme-and-velocity-variables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>jsp:include vs jsp include directive</title>
		<link>http://javamarco.wordpress.com/2009/04/02/jspinclude-vs-jsp-include-directive/</link>
		<comments>http://javamarco.wordpress.com/2009/04/02/jspinclude-vs-jsp-include-directive/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 09:52:24 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[directive]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/?p=22</guid>
		<description><![CDATA[In JSP technology you can include another page in two modes: using jsp:include tag: &#60;jsp:include page=&#8221;dir/file.jsp&#8221; flush=&#8221;true&#8221;/&#62; Or with the include file directive: &#60;%@ include file=&#8221;dir/file.jsp&#8221; %&#62; What&#8217;s the difference? In the first case the page is called and compiled at run-time and in the second case is called and compiled at compiled-time. I notice [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=22&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In JSP technology you can include another page in two modes: using jsp:include tag:</p>
<p>&lt;jsp:include page=&#8221;dir/file.jsp&#8221; flush=&#8221;true&#8221;/&gt;</p>
<p>Or with the include file directive:</p>
<p>&lt;%@ include file=&#8221;dir/file.jsp&#8221; %&gt;</p>
<p>What&#8217;s the difference?</p>
<p>In the first case the page is called and compiled at run-time and in the second case is called and compiled at compiled-time.</p>
<p>I notice that a jsp file is re-compiled everytime it changes.</p>
<p>For example if you are using the inlcude directive and you modify the included page you still see the same previously compiled result. You need to recompile the father jsp in order to recompile the child jsp. In this case you need to change (or touch) the both.</p>
<p>Using the jsp:include it is not necessary because everytime the both jsp are re-compiled.</p>
<p>You say: &#8220;Ok, but I&#8217;m sure I&#8217;ll not change the included/child jsp&#8221;.</p>
<p>Perfect! Change the param flush to false.</p>
<p>Here you can find more <a title="jsp directives" href="https://www.gopay.com.cn/resin-doc/jsp/directives.xtp" target="_blank">jsp directives</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=22&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2009/04/02/jspinclude-vs-jsp-include-directive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>Object Cast 1: from String to int</title>
		<link>http://javamarco.wordpress.com/2009/01/11/object-cast-1-from-string-to-int/</link>
		<comments>http://javamarco.wordpress.com/2009/01/11/object-cast-1-from-string-to-int/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 21:55:46 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[cast]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[Integer]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/?p=18</guid>
		<description><![CDATA[In Java to cast from String to int you can use three lines of code: String numberString = &#8220;27&#8243;; Integer numberInteger = new Integer(numberString); int nimberInt = numberInteger.intValue(); or just one line: int nimberInt = new Integer(&#8220;27&#8243;).intValue();<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=18&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Java to cast from String to int you can use three lines of code:</p>
<p>String numberString = &#8220;27&#8243;;</p>
<p>Integer numberInteger = new Integer(numberString);</p>
<p>int nimberInt = numberInteger.intValue();</p>
<p>or just one line:</p>
<p>int nimberInt = new Integer(&#8220;27&#8243;).intValue();</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=18&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2009/01/11/object-cast-1-from-string-to-int/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>java.util.Enumeration vs java.util.Iterator</title>
		<link>http://javamarco.wordpress.com/2008/09/12/javautilenumeration-vs-javautiliterator/</link>
		<comments>http://javamarco.wordpress.com/2008/09/12/javautilenumeration-vs-javautiliterator/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 15:06:05 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[java.util.Enumeration]]></category>
		<category><![CDATA[java.util.Iterator]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/?p=10</guid>
		<description><![CDATA[The next example print, using the standard output, all the java.lang.String Object included in a java.util.Map using a java.util.Iterator Iterator oIterator = oMap.values().iterator(); while(oIterator.hasNext()){ String[] theParam = (String[])oIterator.next(); String theValue = (String)oMap.get(theParam[0]); System.out.println("\n= param: " + theParam[0] + " --&#62; " + theValue); } The next one use the java.util.Enumeration to print a java.util.Hashtable if(!oHashtable.isEmpty()){ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=10&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The next example print, using the standard output, all the <strong>java.lang.String</strong> Object included in a <strong>java.util.Map</strong> using a <strong>java.util.Iterator</strong></p>
<p><code>Iterator oIterator = oMap.values().iterator();<br />
while(oIterator.hasNext()){<br />
String[] theParam = (String[])oIterator.next();<br />
String theValue = (String)oMap.get(theParam[0]);<br />
System.out.println("\n= param: " + theParam[0] + " --&gt; " + theValue);<br />
}</code></p>
<p>The next one use the <strong>java.util.Enumeration</strong> to print a <strong>java.util.Hashtable</strong></p>
<p><code>if(!oHashtable.isEmpty()){<br />
Enumeration oEnumeration = oHashtable.keys();<br />
while(oEnumeration.hasMoreElements()){<br />
String theParam = (String)oEnumeration.nextElement();<br />
String theValue = oHashtable.get(theParam);<br />
System.out.println("\n=param: " + theParam + "=" + theValue);<br />
}<br />
}</code></p>
<p>Notice that it needs an <em>if</em> to check the status of the Hashtable because the method .keys() can throw a <strong>java.lang.NullPointerException</strong>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/javamarco.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/javamarco.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=10&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2008/09/12/javautilenumeration-vs-javautiliterator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>Java String Capitalize</title>
		<link>http://javamarco.wordpress.com/2008/09/08/java-string-capitalize/</link>
		<comments>http://javamarco.wordpress.com/2008/09/08/java-string-capitalize/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 19:58:18 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[string capitalize]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/?p=6</guid>
		<description><![CDATA[When I was looking for first time the method to capitalize a Java String, I was searching in the Sun Official API but&#8230; there isn&#8217;t. Strange not? No problem this is the code to capitalize a Java String: String mystring = (mystring.substring(0, 1).toUpperCase() + mystring.substring(1).toLowerCase()).trim(); You can also download it from Javamarco google code repository<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=6&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I was looking for first time the method to <strong>capitalize a Java String</strong>, I was searching in the Sun Official API but&#8230; there isn&#8217;t.</p>
<p>Strange not?</p>
<p>No problem this is the code to capitalize a Java String:</p>
<p><code>String mystring = (mystring.substring(0, 1).toUpperCase() + mystring.substring(1).toLowerCase()).trim();</code></p>
<p>You can also download it from <a title="java String capitalize" href="http://code.google.com/p/jmarco/downloads/list" target="_self">Javamarco google code repository</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/javamarco.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/javamarco.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=6&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2008/09/08/java-string-capitalize/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
		<item>
		<title>Another blog&#8230; another begin&#8230;</title>
		<link>http://javamarco.wordpress.com/2008/09/07/another-blog-another-begin/</link>
		<comments>http://javamarco.wordpress.com/2008/09/07/another-blog-another-begin/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 19:24:06 +0000</pubDate>
		<dc:creator>javamarco</dc:creator>
				<category><![CDATA[NEWS]]></category>
		<category><![CDATA[java code]]></category>

		<guid isPermaLink="false">http://javamarco.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi all, I decided to open this blog because I need a centralized repository where put my java code. Yes, I know that a blog is not a repository for java developers but is a good media to transmit the know-how to the others programmers. LET&#8217;S GO JAVA CODE!!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=3&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all, I decided to open this blog because I need a centralized repository where put my java code.</p>
<p>Yes, I know that a blog is not a repository for java developers but is a good media to transmit the know-how to the others programmers.</p>
<p>LET&#8217;S GO JAVA CODE!!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/javamarco.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/javamarco.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javamarco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javamarco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/javamarco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/javamarco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javamarco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javamarco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javamarco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javamarco.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javamarco.wordpress.com&amp;blog=4762071&amp;post=3&amp;subd=javamarco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://javamarco.wordpress.com/2008/09/07/another-blog-another-begin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2614dfaf9f531aae1905f1d8e3b878ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">javamarco</media:title>
		</media:content>
	</item>
	</channel>
</rss>
