<?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></title>
	<atom:link href="http://millad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://millad.wordpress.com</link>
	<description>Millad`s Personal Blog { Programming, Web, Graphic Design, and Me }</description>
	<lastBuildDate>Tue, 26 Jul 2011 07:53:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='millad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title></title>
		<link>http://millad.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://millad.wordpress.com/osd.xml" title="" />
	<atom:link rel='hub' href='http://millad.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Millad.net Soon</title>
		<link>http://millad.wordpress.com/2008/01/09/milladnet-soon/</link>
		<comments>http://millad.wordpress.com/2008/01/09/milladnet-soon/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 23:12:04 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2008/01/09/milladnet-soon/</guid>
		<description><![CDATA[Im working currently on my Version 8 of my portfolio site, witch will be launched soon this week or the next.  URL at http://www.Millad.net  The site is up with a simple splash page I made quick to let you know its &#8230; <a href="http://millad.wordpress.com/2008/01/09/milladnet-soon/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=75&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Im working currently on my Version 8 of my portfolio site, witch will be launched soon this week or the next.  URL at <a href="http://www.Millad.net">http://www.Millad.net</a> <br /> The site is up with a simple splash page I made quick to let you know its there. The blog will be moved there with all its content, new layout and portfolio site will be done also.<br /><span style="font-style:italic;" class="Apple-style-span">I would really appreciate some respond to some of my post, I kinda feel quite alone posting stuff, I hope Im doing good to others who visit the site and read stuff right here. </span></p>
<p>Thank you very much for your time. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/75/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/75/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=75&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2008/01/09/milladnet-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>Leopard Tips: Search in stacks</title>
		<link>http://millad.wordpress.com/2007/12/12/leopard-tips-search-in-stacks/</link>
		<comments>http://millad.wordpress.com/2007/12/12/leopard-tips-search-in-stacks/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 18:55:56 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Applications & Downloads]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[launch]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MAC OS X]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[STACKS]]></category>
		<category><![CDATA[tips & tric]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/12/12/leopard-tips-search-in-stacks/</guid>
		<description><![CDATA[.You can now search in stacks, by simply selecting your stack(pressing it) when it opens you can simply type the first letters of your application you want to launch and stacks will highlight it for you. Press (ENTER) to launch &#8230; <a href="http://millad.wordpress.com/2007/12/12/leopard-tips-search-in-stacks/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=67&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://img102.imageshack.us/img102/1924/searchaof1.jpg" width="427" height="278" />.You can now search in stacks, by simply selecting your stack(pressing it) when it opens you can simply type the first letters of your application you want to launch and stacks will highlight it for you. Press (ENTER) to launch the application.  </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/67/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/67/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=67&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/12/12/leopard-tips-search-in-stacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>

		<media:content url="http://img102.imageshack.us/img102/1924/searchaof1.jpg" medium="image" />
	</item>
		<item>
		<title>Leopard tips : Change upper bar icon position</title>
		<link>http://millad.wordpress.com/2007/12/12/leopard-mac-os-x-tip-change-upper-bar-icons/</link>
		<comments>http://millad.wordpress.com/2007/12/12/leopard-mac-os-x-tip-change-upper-bar-icons/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 18:52:06 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Applications & Downloads]]></category>
		<category><![CDATA[APPEARANCE]]></category>
		<category><![CDATA[BAR]]></category>
		<category><![CDATA[EDIT]]></category>
		<category><![CDATA[ICONS]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[MAC OS X]]></category>
		<category><![CDATA[MAC OS X LEOPARD]]></category>
		<category><![CDATA[MOVE]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/12/12/leopard-mac-os-x-tip-change-upper-bar-icons/</guid>
		<description><![CDATA[You can easily change  the position of the small icons on the left upper corner of your mac os x leopard bar by holding the apple key and pressing(dragging) the icon you want and move it before or after the ones you &#8230; <a href="http://millad.wordpress.com/2007/12/12/leopard-mac-os-x-tip-change-upper-bar-icons/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=66&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://img409.imageshack.us/img409/5255/27163606jk3.jpg" width="240" height="67" />You can easily change  the position of the small icons on the left upper corner of your mac os x leopard bar by holding the apple key and pressing(dragging) the icon you want and move it before or after the ones you wish to. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/66/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/66/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=66&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/12/12/leopard-mac-os-x-tip-change-upper-bar-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>

		<media:content url="http://img409.imageshack.us/img409/5255/27163606jk3.jpg" medium="image" />
	</item>
		<item>
		<title>Condition Operator ( ?: )</title>
		<link>http://millad.wordpress.com/2007/11/29/condition-operator/</link>
		<comments>http://millad.wordpress.com/2007/11/29/condition-operator/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 16:38:42 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/29/condition-operator/</guid>
		<description><![CDATA[Condition Operator that java provides (?:) can be used in place of an if..else statement. THis is a Java only ternary operator this means it takes three operands. the first witch is before the ? is if the value is &#8230; <a href="http://millad.wordpress.com/2007/11/29/condition-operator/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=65&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Condition Operator that java provides (?:) can be used in place of an if..else statement. THis is a Java only ternary operator this means it takes three operands. </p>
<p>the first witch is before the ?  is if the value is true or false &#8211; and after the ? is the action to be done IF TRUE and AFTER : is the action to be done if FALSE. </p>
<p>so its like this<br />
<pre class="brush: java;">
//                          check true/false  ? true run this : false run this;
System.out.println( studenAge &gt;= 18 ? &quot;HE IS OVER 18&quot; : &quot;IS UNDER 18&quot;);
</pre></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=65&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/29/condition-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>OOP-Relationship &amp; Two-dimensional Array</title>
		<link>http://millad.wordpress.com/2007/11/27/oop-relationship-two-dimensional-array/</link>
		<comments>http://millad.wordpress.com/2007/11/27/oop-relationship-two-dimensional-array/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 13:38:38 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/27/oop-relationship-two-dimensional-array/</guid>
		<description><![CDATA[Object Oriented programming inheritance;Small Note: System.out.print(className) will go throw the class until he finds a toString() method and prints it out for you. So you dont need to type : System.out.print(className.toString); you just type the name if you only have &#8230; <a href="http://millad.wordpress.com/2007/11/27/oop-relationship-two-dimensional-array/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=64&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Object Oriented programming inheritance;Small Note: System.out.print(className) will go throw the class until he finds a toString() method and prints it out for you. So you dont need to type : System.out.print(className.toString); you just type the name if you only have ONE toString(). Two Dimensional Array: <br />
<pre class="brush: java;">

for(int row = 0; row &lt; arrayName.length; row++){
	for(int col = 0; col &lt; sales [ row ].length; col++)
	{
		sales[ row ][ col ] = 0;
	}
}

</pre><br />
  Here is another example of a 2D Array that creates a &#8220;Itunes&#8221; list with artist, album and producer.<br />
<pre class="brush: java;"> 

import javax.swing.*;
import java.util.*;

public class Array2D
{
	public static void main(String[] args)
	{
		String[][] iTunes = new String[3][3];
		iTunes[0][0] = &quot;Artist&quot;;
		iTunes[0][1] = &quot;Album&quot;;
		iTunes[0][2] = &quot;Producer&quot;; 
		iTunes[1][0] = &quot;50 Cent&quot;;
	        iTunes[1][1] = &quot;Curtis&quot;;
	        iTunes[1][2] = &quot;G-Unit&quot;;
	    
		Scanner input = new Scanner(System.in);
		System.out.printf(&quot;%s : %s : %s \n&quot;, iTunes[0][0], iTunes[0][1], iTunes[0][2]);
		for(int row = 1; row &lt; iTunes.length; row++)
		{
			for(int col = 0; col &lt; iTunes[ row ].length; col++ )
			{
				System.out.printf(&quot;%s : &quot;, iTunes[row][col]);
			}
			System.out.println();
		}
	}

}

/*			System.out.print(&quot;Write Artist name: &quot;);
				String artist = input.nextLine();
				iTunes[row][col] = artist;
				
				System.out.print(&quot;Write &quot; + artist + &quot;'s album: &quot;);
				String album = input.nextLine();
				iTunes[row][col] = album;
				
				System.out.print(&quot;Write &quot; + artist + &quot;'s producer: &quot;);
				String prod = input.nextLine();
				iTunes[row][col] = prod;*/

</pre>  </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/64/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/64/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=64&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/27/oop-relationship-two-dimensional-array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting &amp; more</title>
		<link>http://millad.wordpress.com/2007/11/25/converting-more/</link>
		<comments>http://millad.wordpress.com/2007/11/25/converting-more/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 01:19:56 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>
		<category><![CDATA[Converting]]></category>
		<category><![CDATA[int to String]]></category>
		<category><![CDATA[integer]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[parsein]]></category>
		<category><![CDATA[String to int]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/25/converting-more/</guid>
		<description><![CDATA[  Dealing with nulls UtilFactory.convertNull   Java – comparing strings Use == for primitive data types like int If (mystring == null)   Use the equals() method to compare objects Use .equals for strings  : if (a.equals(“cat”))   Java &#8211; Converting int to string &#8230; <a href="http://millad.wordpress.com/2007/11/25/converting-more/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=63&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Times;line-height:normal;" class="Apple-style-span"> </span>
<p class="Section1"> </p>
<h3>Dealing with nulls</h3>
<h3><span style="font-weight:normal;">UtilFactory.convertNull</span></h3>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<h3>Java – comparing strings</h3>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">Use == for primitive data types like int</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">If (mystring == null)</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><strong> </strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><strong>Use the <span class="GramE">equals(</span>) method to compare objects</strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">Use .equals for <span class="GramE">strings<span>  </span>:</span> if (a.equals(“cat”))</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<p><span id="more-63"></span><br />
<h3>Java &#8211; Converting int to string</h3>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><strong> </strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">String myString = <span class="GramE">Integer.toString(</span>my int value)</p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE"><strong>or</strong></span></pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span>String <span class="GramE">str</span> = &#8220;&#8221; + i</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<h3>Java &#8211; Converting String to int</h3>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE">int</span> i = Integer.parseInt(str);</p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE"><strong>or</strong></span></pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span class="GramE">int</span> i = Integer.valueOf(str).intValue();</pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">double</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to String :</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span>String str = <span class="GramE">Double.toString(</span>i);</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">long</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to String :</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">String str = <span class="GramE">Long.toString(</span>l);</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">float</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to String :</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">String str = <span class="GramE">Float.toString(</span>f);</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><strong><em><span style="font-size:12pt;font-family:Arial;">String to <span class="GramE">double<span style="font-size:9pt;font-family:Verdana;font-weight:normal;"> :</span></span></span></em></strong><span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE">double</span> d = Double.valueOf(str).doubleValue();</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><strong><em><span style="font-size:12pt;font-family:Arial;">String to <span class="GramE">long :</span></span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span class="GramE">long</span> l = Long.valueOf(str).longValue();</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE"><strong>or</strong></span></pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span><span class="GramE">long</span> l = Long.parseLong(str);</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><strong><em><span style="font-size:12pt;font-family:Arial;">String to <span class="GramE">float :</span></span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE">float</span> f = Float.valueOf(str).floatValue();<span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"></span><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">decimal</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to binary :</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE">int</span> i = 42;</pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span>String binstr = <span class="GramE">Integer.toBinaryString(</span>i);<span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"></span><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">decimal</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to hexadecimal :</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE">int</span> i = 42;</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span>String hexstr = <span class="GramE">Integer.toString(</span>i, 16);</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"> </pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE"><strong>or</strong></span></pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span>String hexstr = <span class="GramE">Integer.toHexString(</span>i);</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"> </pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE"><strong>or</strong></span><strong> (with leading zeroes and uppercase)</strong></pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE">public</span> class Hex {</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>     </span><span class="GramE">public</span> static void main(String args[]){</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>       </span><span class="GramE">int</span> i = 42;</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>       </span>System.out.print</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>         </span>(<span class="GramE">Integer.toHexString(</span> 0x10000 | i).substring(1).toUpperCase());</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>      </span>}</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>     </span>}</pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"></span><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">hexadecimal</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> (String) to integer :</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span class="GramE">int</span> i = Integer.valueOf("B8DA3", 16).intValue();</pre>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span>   </span><span class="GramE"><strong>or</strong></span></pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span><span class="GramE">int</span> i = Integer.parseInt(&#8220;B8DA3&#8243;, 16);<span>    </span><span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"></span><strong><em><span style="font-size:12pt;font-family:Arial;">ASCII code to String</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span class="GramE">int</span> i = 64;</pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span>String aChar = new <span class="GramE">Character(</span>(char)i).toString();<span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"></span><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">integer</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to ASCII code (byte)</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<pre style="font-size:9pt;font-family:Courier;margin:0 0 0.0001pt;"><span class="GramE">char</span> c = 'A';</pre>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span><span class="GramE">int</span> i = (int) c; // i will have the value 65 decimal<span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"></span><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">integer</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to boolean</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span>   </span>b = (<span class="GramE">i !</span>= 0);</p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"><span class="GramE"><strong><em><span style="font-size:12pt;font-family:Arial;">boolean</span></em></strong></span><strong><em><span style="font-size:12pt;font-family:Arial;"> to integer</span></em></strong><strong><span style="font-size:12pt;font-family:Arial;"></span></strong></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal">i = (b)<span class="GramE">?1:0</span>;<span style="font-size:9pt;font-family:Verdana;"></span></p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<p style="font-size:10pt;font-family:'Times New Roman';margin:0 0 0.0001pt;" class="MsoNormal"> </p>
<p> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/63/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/63/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=63&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/25/converting-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>Printing out Char writeChar</title>
		<link>http://millad.wordpress.com/2007/11/06/printing-out-char-writechar/</link>
		<comments>http://millad.wordpress.com/2007/11/06/printing-out-char-writechar/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 13:25:18 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>
		<category><![CDATA[char]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[toChar]]></category>
		<category><![CDATA[toString]]></category>
		<category><![CDATA[write char]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/06/printing-out-char-writechar/</guid>
		<description><![CDATA[ If you want to make a method that writes your &#8220;char(s)&#8221; all out, you cannot do it like you do with toString() method, because char is different. You have to create the System.out.println inside the method it self. so Do &#8230; <a href="http://millad.wordpress.com/2007/11/06/printing-out-char-writechar/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=62&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> If you want to make a method that writes your &#8220;char(s)&#8221; all out, you cannot do it like you do with toString() method, because char is different. You have to create the System.out.println inside the method it self. so Do not use the return char thing.</p>
<p><pre class="brush: java;">
public class CharTest
{
  public static void main(String [] args)
  {
     public static void writeChar()
      {
       for(int i = 0; i &lt; charArray.length; i++)
        {
           System.out.println(charArray[i]); // prints every char there is....
         }
       }
   }
}

</pre></p>
<p>Remember to call the writeChar method from another class&#8230; so it can run</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=62&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/06/printing-out-char-writechar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>Constructor ( With/Without ) Parameter &amp; Method</title>
		<link>http://millad.wordpress.com/2007/11/06/constructor-withwithout-parameter-method/</link>
		<comments>http://millad.wordpress.com/2007/11/06/constructor-withwithout-parameter-method/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 12:59:44 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>
		<category><![CDATA[Constructor]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Parameter]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/06/constructor-withwithout-parameter-method/</guid>
		<description><![CDATA[What is a method? A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method). Method example : getName(); &#8230; <a href="http://millad.wordpress.com/2007/11/06/constructor-withwithout-parameter-method/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=61&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What is a method?</p>
<p>A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).</p>
<p>Method example :  getName();  // This will return the name value.so getName have to be getName() { return name; }<br />
They cannot be declared in a public static void main(String[] args)  ! but outside.<br />
You have to create them in a public class {   }  call them from another class or same:) </p>
<p>Constructors &#8211; They create new objects and give them values when created if it is with a parameter.</p>
<p>House myHouse = new House(&#8220;Red&#8221;, 03, &#8220;Millad&#8221;)<br />
House color, house Number, house owner  &#8211; &gt; These will be taken when created and saves it to its object&#8230;</p>
<p>Without parameter:House myHouse = new House(); This will make a default value that you have to write before creating a &#8220;default&#8221; class.<br />
like HouseOwner = &#8220;Not Set&#8221;;   </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=61&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/06/constructor-withwithout-parameter-method/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>Making &#8220;connection&#8221; between classes</title>
		<link>http://millad.wordpress.com/2007/11/06/making-connection-between-classes/</link>
		<comments>http://millad.wordpress.com/2007/11/06/making-connection-between-classes/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 12:03:07 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/06/making-connection-between-classes/</guid>
		<description><![CDATA[Let say you have two classes and you want to connect them.First make two classes to connect.   As you can see you have a class called Test1, All names of classes should be started with a capital letter. Make a &#8230; <a href="http://millad.wordpress.com/2007/11/06/making-connection-between-classes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=60&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let say you have two classes and you want to connect them.First make two classes to connect. <br />
<pre class="brush: java;">
class Test1
{     
      public static void main (String [] args)      
       {
             int number = 1;
       }
}
</pre></p>
<p> As you can see you have a class called Test1, All names of classes should be started with a capital letter.<br />
Make a new class, lets call that Test2<br />
<pre class="brush: java;">
class Test2
{
  Test1 nameThisNewThing = new Test1; // this makes a &quot;connection&quot; so you can get info from the class Test1 threw the name you gave it.
}
</pre> <br />
From there you can get information and send information, because its values or info is not static so you have to create a &#8220;new&#8221; object out of the class to access it.<br />
Correct me if Im wrong! </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=60&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/06/making-connection-between-classes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
		<item>
		<title>public static methods !</title>
		<link>http://millad.wordpress.com/2007/11/06/public-static-methods/</link>
		<comments>http://millad.wordpress.com/2007/11/06/public-static-methods/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 23:28:58 +0000</pubDate>
		<dc:creator>Millad</dc:creator>
				<category><![CDATA[Programming & Java]]></category>

		<guid isPermaLink="false">http://millad.wordpress.com/2007/11/06/public-static-methods/</guid>
		<description><![CDATA[Static methods is used so it cud be used from other classes without making a new object out of the class it self. So let say you have a static vale of 10, and you want to share it with &#8230; <a href="http://millad.wordpress.com/2007/11/06/public-static-methods/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=59&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Static methods is used so it cud be used from other classes without making a new object out of the class it self. So let say you have a static vale of 10, and you want to share it with the other class, you simply call the class name and then the method that returns its value, like this: className.methodName();  </p>
<p>now this task is done with two classes, it will generate random arrays that holds 12 arrays, and will put in randomized order {u,h,b) shortcut in norwegian as uavgjort, borte, hjem. </p>
<p><pre class="brush: java;">
import java.util.Scanner;
public class Tipping 
{
	static Scanner input = new Scanner(System.in);
	private static int feil = 0;
	private static int antall = 0;
	private static char dinGjett = 0;
	static char[] tegnene = new char[ 12 ];
	private static char[] dinTegn = new char[ tegnene.length];
	private static char[] str = new char[] {'H','U','B'};
	
	public static char tippingEnkeltRekke(char[] tegnene)
	{
		for( int i = 0; i &lt; tegnene.length; i++ )
		{
			tegnene[i] += str[(char)(Math.random () * str.length)]; // Generate and place it random back to the list...
		}
		
		
		return 0;
	}
	
	public static char Min()
	{
		for(int i = 0; i &lt; dinTegn.length; i++)
		{
			System.out.print(&quot;Din Gjett ( &quot; + i +  &quot; ) Skriv din liste 12 Gjett FORVENTET:  &quot; );
			String gjett = input.next();
			dinGjett = gjett.charAt(0);
			dinTegn[i] += dinGjett;	
		}
		return 0;
	}
	
	public static int sjekkGevinst()
	{
		for(int i = 0; i &lt; tegnene.length; i++)
		{
				if(tegnene[i] == dinTegn[i])
					{
						antall++;
					} else
						feil++;
		}
		return 0;
	}
	
	
	public static void skrivTipperekke()
	{
		for( int i = 0; i &lt; 12; i++)
		{
			System.out.printf(&quot;\n%c%15c&quot;, tegnene[i], dinTegn[i]); // Print out all char list...
		}
		System.out.println(&quot;\nAntall Riktig Match: &quot; + antall + &quot;\nAntall Feil: &quot; + feil);
		
	}

}// end of Tipping class.

</pre></p>
<p>Now the second class witch runs the program-<br />
<pre class="brush: java;">
public class TippingManager
{
	public static void main(String[] args)
	{
		
		Tipping.tippingEnkeltRekke(Tipping.tegnene); // Generate the list random...
		
		Tipping.Min();
		Tipping.sjekkGevinst();
		Tipping.skrivTipperekke(); // SKriv ut alle TippeRekkene... 
	}

}

</pre></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/millad.wordpress.com/59/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/millad.wordpress.com/59/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/millad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/millad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/millad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/millad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/millad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/millad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/millad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/millad.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=millad.wordpress.com&amp;blog=59759&amp;post=59&amp;subd=millad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://millad.wordpress.com/2007/11/06/public-static-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/35079459e05cac07ff747fc4dc21d650?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">millad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
