<?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>Effective Code</title>
	<atom:link href="http://ewsong.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ewsong.wordpress.com</link>
	<description>How To Code Effectively</description>
	<lastBuildDate>Mon, 23 Mar 2009 02:49:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ewsong.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/956f095831a697f64030c1b570e33142?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Effective Code</title>
		<link>http://ewsong.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ewsong.wordpress.com/osd.xml" title="Effective Code" />
	<atom:link rel='hub' href='http://ewsong.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Javadoc</title>
		<link>http://ewsong.wordpress.com/2009/03/23/java-doc/</link>
		<comments>http://ewsong.wordpress.com/2009/03/23/java-doc/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 02:18:27 +0000</pubDate>
		<dc:creator>rampart81</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Javadoc]]></category>

		<guid isPermaLink="false">http://ewsong.wordpress.com/?p=11</guid>
		<description><![CDATA[Class-level Comments Class-level comments provide a description of the class, and they are placed right above the code that declares the class. Class-level comments generally contain author tags, and a description of the class. An example class-level comment is below: &#8230; <a href="http://ewsong.wordpress.com/2009/03/23/java-doc/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ewsong.wordpress.com&amp;blog=7064428&amp;post=11&amp;subd=ewsong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="body"><strong>Class-level Comments</strong></p>
<p class="body">Class-level comments provide a description of the class, and they are placed right above the code that declares the class. Class-level comments generally contain author tags, and a description of the class. An example class-level comment is below:</p>
<blockquote>
<pre class="code"><code>/**
 * @author Sarah Smith
 *
 * The Inventory class contains the amounts of all the
 * inventory in the CoffeeMaker system.  The types of
 * inventory in the system include coffee, milk, sugar
 * and chocolate.
 */
public class Inventory {

   //Inventory code here

}</code></pre>
</blockquote>
<p><strong>Member-level Comments</strong></p>
<p><strong>Member-level comments describe the fields, methods, and constructors. Method and constructor comments may contain tags that describe the parameters of the method. Method comments may also contain return tags. An example of these member-level comments are below:</strong></p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong></p>
<blockquote>
<pre class="code"><code>/**
 * @author Sarah Smith
 *
 * The Inventory class contains the amounts of all the
 * inventory in the CoffeeMaker system. The types of
 * inventory in the system include coffee, milk, sugar
 * and chocolate.
 */
public class Inventory { 

   /**
    * Inventory for coffee
    */
   private int amtCoffee;

   /**
    * Default constructor for Inventory
    * Sets all ingredients to 15 units
    */
   public Inventory() {
      this.coffee = 15;
   }

   /**
    * Returns the units of coffee in the Inventory
    *
    * @return int
    */
   public int getAmtCoffee() {
      return coffee;
   }

   /**
    * Sets the units of coffee in the Inventory
    *
    * @param int new units coffee
    */
   public void setAmtCoffee(int newCoffee) {
      this.coffee = newCoffee;
   }
}</code></pre>
</blockquote>
<p></strong></p>
<p><strong></strong></p>
<p><strong>Javadoc Tags</strong></p>
<p>To add a class hyperlink, we have to add a tag in the comment. The format of class hyperlink tag is:</p>
<p><span class="code"><em>{@link &lt;FullClassName&gt; [Display Text]}</em><br />
</span><br />
FullClassName is the name of the class you wish to link to. The class name must also include the package name if the target class is not in the same package. Display Text is optional. It is the text that will be displayed in the document. If the display text is ignored, the result document will display the full class name.</p>
<p class="mainText"> To add a hyper link to a method of the same class, we use the <span class="codeText">@link</span> tag like this:</p>
<p class="mainText"><span class="code"><em>{@link #&lt;MethodSignature&gt; [Display Text]}</em></span></p>
<p class="mainText">MethodSignature is the signature of the target method, including the method name and the parameter types.</p>
<p class="mainText"><span class="note">Note:</span> It&#8217;s sometimes difficult to type the right method signature. You may simply type # and some beginning characters of the method name, press Ctrl-SPACE, and a list of the method signatures that match will pop up. You can select a method from the list.</p>
<p class="mainText">To add a hyper link to a method in a different class, we use the @link tag like this:</p>
<p class="mainText"><span class="code"><em>{@link &lt;ClassName&gt;#&lt;MethodSignature&gt; [Dsplay Option]}</em></span></p>
<p class="mainText">ClassName is the full name of the class where the method resides. It must include the package name if the class is not in the same package. MethodSignature is the the method signature where this comment links to. If Display Option is not specified, the name of the class and method will be displayed in the document.</p>
<p class="mainText"><span class="note">Note: </span>Also, you can use Ctrl-SPACE to assist you typing.</p>
<p class="mainText">The most common Javadoc tags are:</p>
<ul>
<li>@author: Describes the author of the document. Used in class-level comments</li>
<li>@param: Describes a parameter of a method or constructor.</li>
<li>@return: Describes the return type of a method.</li>
<li>@throws: Describes an exception a method may throw.</li>
<li>@exception: Describes an exception.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ewsong.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ewsong.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ewsong.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ewsong.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ewsong.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ewsong.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ewsong.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ewsong.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ewsong.wordpress.com&amp;blog=7064428&amp;post=11&amp;subd=ewsong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ewsong.wordpress.com/2009/03/23/java-doc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/979a1b7c8613ccb0186ac9a4b2a5cd22?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">rampart81</media:title>
		</media:content>
	</item>
		<item>
		<title>The first post</title>
		<link>http://ewsong.wordpress.com/2009/03/23/the-first-post/</link>
		<comments>http://ewsong.wordpress.com/2009/03/23/the-first-post/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 02:06:43 +0000</pubDate>
		<dc:creator>rampart81</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ewsong.wordpress.com/?p=9</guid>
		<description><![CDATA[This is my first post on this blog<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ewsong.wordpress.com&amp;blog=7064428&amp;post=9&amp;subd=ewsong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first post on this blog</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ewsong.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ewsong.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ewsong.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ewsong.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ewsong.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ewsong.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ewsong.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ewsong.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ewsong.wordpress.com&amp;blog=7064428&amp;post=9&amp;subd=ewsong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ewsong.wordpress.com/2009/03/23/the-first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/979a1b7c8613ccb0186ac9a4b2a5cd22?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">rampart81</media:title>
		</media:content>
	</item>
	</channel>
</rss>
