<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4307410102695913200</id><updated>2011-04-21T21:20:04.586-07:00</updated><category term='JAVA TUTORIALS - PART 4'/><category term='JAVA TUTORIALS - PART 6'/><category term='JAVA TUTORIALS - PART 1'/><category term='JAVA TUTORIALS - PART 5'/><category term='EDUCATION : JAVA TUTORIALS'/><category term='JAVA TUTORIALS - PART 2'/><category term='JAVA TUTORIALS - PART 3'/><title type='text'>JAVA 2 : THE COMPLETE REFERENCE</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-6765861346751681797</id><published>2009-05-17T02:10:00.001-07:00</published><updated>2009-05-17T02:14:50.706-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA TUTORIALS - PART 6'/><title type='text'>Tutorial 3 - Control Flow</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;NOTE : -  THIS IS NOT THE ORIGINAL CONTENT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: 'courier new'; font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: 'courier new'; font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-weight: normal; "&gt;&lt;h1 style="font-size: 200%; font-family: cursive; font-weight: bold; text-align: center; clear: both; display: block; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; margin-top: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Tutorial 3 - Control Flow&lt;/h1&gt;&lt;p style="text-align: left; "&gt;This tutorial on basic Java control flow assumes some introductory programming experience in another language.&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#co" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;conditional statements&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#lo" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;loops&lt;/a&gt; and &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#sw" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;switches&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#cbr" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;continue, break &amp;amp; return&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#cl" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;command line arguments&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#ma" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;project: basic problems&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#mc" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;project: metric converter&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 id="co" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Conditional Statements&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;Conditional statements&lt;/strong&gt; execute a &lt;em style="font-style: italic; font-weight: bold; "&gt;block&lt;/em&gt; or set of other statements only if certain conditions are met. The condition is &lt;em style="font-style: italic; font-weight: bold; "&gt;always&lt;/em&gt; enclosed in round brackets. The statements to be performed if the condition is true are enclosed in curly brackets. For example:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;if (value &gt; 5) {x=7;}&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; If the block (ie. curly brackets) contains only one statement, you may leave the brackets off. But this is not good programming practice. The curly brackets make the code more consistent and easier to read.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Occasionally you may want to perform some actions for the false outcome of a condition as well. The &lt;strong style="font-weight: bold; "&gt;else&lt;/strong&gt; keyword is used to separate branches.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;if (name == "Fred") {x=4;}   else {x=20;};&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; When the conditional if statement is used only to make an assignment to one variable, you can use the terse C&lt;em style="font-style: italic; font-weight: bold; "&gt;conditional operator&lt;/em&gt;. A simple example is:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;x=(name == "Fred") ? 4 : 20;&lt;/pre&gt;&lt;h2 id="lo" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Loops&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;For statements&lt;/strong&gt; allow a set of statements to be repeated or looped through a fixed number of times. The round bracket contains initializer(s) ; conditional test ; incrementer(s). If more than one initializer or incrementer is used they are separated with commas. The test condition is checked &lt;em style="font-style: italic; font-weight: bold; "&gt;prior to&lt;/em&gt; executing the block. The incrementing is done&lt;em style="font-style: italic; font-weight: bold; "&gt;after&lt;/em&gt; executing the block. For example to output #1 #2 etc.(or #5 #4 etc.) on separate rows you could write:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;for (int i=1;i&lt;=5;i++) {document.writeln("#"+i);}; for (int i=5;i&gt;=1;i--) {document.writeln("#"+i);};&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; A special case of the for loop is the infinite loop &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;for (;;){...}&lt;/span&gt;. This could be used with appropriate 'breakout' logic where a continuous operation was needed.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Caution:&lt;/span&gt; &lt;em style="font-style: italic; font-weight: bold; "&gt;For loops&lt;/em&gt; can be written in ways that violate &lt;em style="font-style: italic; font-weight: bold; "&gt;structured programming&lt;/em&gt; principles by allowing counter variables to be used outside of the scope of the loop block if they are defined outside the loop. Avoid the looseness of the language by &lt;em style="font-style: italic; font-weight: bold; "&gt;always&lt;/em&gt; localizing the loop variable.&lt;/p&gt;&lt;p style="text-align: left; "&gt;The &lt;strong style="font-weight: bold; "&gt;enhanced for statement&lt;/strong&gt; allows iteration over a full set of items or objects. For example:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int[] squares={0,1,4,9,16,25}; for (int square : squares) {...;} // is equivalent to for (int 1;i&lt;squares.length;i++)&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;While statements&lt;/strong&gt; allow a set of statements to be repeated or looped until a certain condition is met. The test condition is checked &lt;em style="font-style: italic; font-weight: bold; "&gt;prior to&lt;/em&gt; executing the block. For example to output #1 #2 etc. on separate rows you could write:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int i=0; while (i&lt;=5) {    document.writeln("#"+i); i++;    };&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;Do While statements&lt;/strong&gt; allow a set of statements to be repeated or looped &lt;em style="font-style: italic; font-weight: bold; "&gt;until&lt;/em&gt; a certain condition is met. The test condition is checked &lt;em style="font-style: italic; font-weight: bold; "&gt;after&lt;/em&gt; executing the block. For example to output #1 #2 etc. on separate rows you could write:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int i=1; do {    document.writeln("#"+i); i++;    } while (i&lt;=5);&lt;/pre&gt;&lt;h2 id="sw" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;The Switch Statement&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;Switch (or case) statements&lt;/strong&gt; are used to select which statements are to be executed depending on a variable's value matching a label. &lt;em style="font-style: italic; font-weight: bold; "&gt;default&lt;/em&gt; is used for the else situation. Note that the selection variable can only be &lt;em style="font-style: italic; font-weight: bold; "&gt;int&lt;/em&gt; or &lt;em style="font-style: italic; font-weight: bold; "&gt;char&lt;/em&gt;datatype.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;switch (selection)    {    case '1': System.out.println("You typed a 1"); break;    case '2': System.out.println("You typed a 2"); break;    default : System.out.println("Oops!, that was an invalid entry.");    };&lt;/pre&gt;&lt;h2 id="cbr" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Continue, Break and Return&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;Continue statements&lt;/strong&gt; are used in looping statements to force another iteration of the loop before reaching the end of the current one. Most often continue is used as part of a conditional statement that only happens in certain cases. The following is a trivial example.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int x=0; while (x &lt;&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;Break statements&lt;/strong&gt; are used in looping and 'switch' statements to force an abrupt termination or exit from the loop or switch. In the following example the loop is never completed. Once again the normal use of break is as part of a conditional statement.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int x=0; while (x &lt;&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Return statements&lt;/em&gt; are used to force a quick exit from a &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor4.htm#me" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;method&lt;/a&gt;. They are also used to pass values back from methods.&lt;/p&gt;&lt;h2 id="cl" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Command Line Arguments&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Command line arguments are accessible through the &lt;em style="font-style: italic; font-weight: bold; "&gt;args[]&lt;/em&gt; array (assuming that &lt;em style="font-style: italic; font-weight: bold; "&gt;args&lt;/em&gt; is the name used in the specification for &lt;em style="font-style: italic; font-weight: bold; "&gt;main&lt;/em&gt; [&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; args[] is a Java coding convention!]). The array &lt;strong style="font-weight: bold; "&gt;does not&lt;/strong&gt; include the interpreter &lt;em style="font-style: italic; font-weight: bold; "&gt;java&lt;/em&gt;command or the class name and the count starts at 0. Each argument is passed as a string but may be converted as in the following:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int w=Integer.parseInt(args[0]); // or sometimes you want the argument to be a character type char s=args[1].charAt(0); // uses first letter of argument only&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; The methods &lt;em style="font-style: italic; font-weight: bold; "&gt;parseInt()&lt;/em&gt; and &lt;em style="font-style: italic; font-weight: bold; "&gt;charAt()&lt;/em&gt; are referenced in the &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor6.htm#tw" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;type wrappers&lt;/a&gt; and &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor7.htm#st" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;string class&lt;/a&gt; topics.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Warning:&lt;/span&gt; Double quote marks are consumed by the command line parser and are &lt;em style="font-style: italic; font-weight: bold; "&gt;not&lt;/em&gt; passed on to the args[] array!&lt;/p&gt;&lt;p style="text-align: left; "&gt;The number of arguments passed in from the command line can be determined by using the &lt;em style="font-style: italic; font-weight: bold; "&gt;args.length&lt;/em&gt; property. This is important when testing for required arguments, when there is a variable number of arguments or when there is an unpredictable number of arguments (eg. the &lt;em style="font-style: italic; font-weight: bold; "&gt;file glob&lt;/em&gt; expansions (* and ?) in &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor9.htm#sh" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;batch&lt;/a&gt; operation).&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Command line options&lt;/em&gt; are arguments with a prefix of - (dash) and is UNIX-centric. They normally precede pathnames in the command line. Options are normally a single character but sometimes are a number or followed by a number. Examples of command line options are:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;pr -d *.htm  ; print double spacing lines head -10 *.htm ; show first 10 lines head -c 10 *.htm ; show first 10 characters&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Command line switches&lt;/em&gt; are arguments with a prefix of / (slash) and is msDOS-centric. They normally toggle boolean flags but can be found in many variations such as a following argument qualifier or a parsing situation. Depending on programmer, they may have to precede or follow file arguments.Examples are:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;find /p fred *.htm  ;page pause requested progname /help ;help or man page requested format /head=4. *.htm ;include 4 lines of header space print -lines 45 *.htm ;print first 45 lines of file(s)&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; I personally prefer switches to options but YMMV! Try to develop a standard argument option|switch handling routine that is as user tolerant as possible regarding switches and filenames. The routine should identify switches by the prefix / and act appropriately. Routines that are accessing filenames from the args[] array should skip switches (as identified with the / prefix). You may want to view the one used in &lt;a href="http://home.cogeco.ca/~ve3ll/japroj.htm#un" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;include.java&lt;/a&gt;.&lt;/p&gt;&lt;h2 id="ma" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Project: Basic Problems&lt;/h2&gt;&lt;p style="text-align: left; "&gt;This project is a series of simple problems that use &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#ar" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;arrays&lt;/a&gt;, &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#lo" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;loops&lt;/a&gt;, &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#cl" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;command line arguments&lt;/a&gt; for input and a simple&lt;em style="font-style: italic; font-weight: bold; "&gt;System.out.println(string);&lt;/em&gt; statement for output.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Problem 1:&lt;/em&gt; Write a program that allows you to create an integer &lt;em style="font-style: italic; font-weight: bold; "&gt;array&lt;/em&gt; of 18 elements with the following values:&lt;em style="font-style: italic; font-weight: bold; "&gt;int A[]={3,2,4,5,6,4,5,7,3,2,3,4,7,1,2,0,0,0}&lt;/em&gt;. The program computes the sum of element 0 to 14 and stores it at element 15, computes the average and stores it at element 16 and identifies the smallest value from the array and stores it at element 17.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Problem 2:&lt;/em&gt; Write a program that accepts two numbers from the command line and prints them out. Then use a &lt;em style="font-style: italic; font-weight: bold; "&gt;for loop&lt;/em&gt; to print the next 13 numbers in the sequence where each number is the sum of the previous two. For example:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;input&gt; java prob2 1 3 output&gt; 1 3 4 7 11 18 29 47 76 123 322 521 843 1364&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Problem 3:&lt;/em&gt; Write a program that accepts two numbers in the range 1 to 40 from the command line. It then compares these numbers against a single dimension &lt;em style="font-style: italic; font-weight: bold; "&gt;array&lt;/em&gt; of five integer elements ranging in value from 1 to 40. The program displays the message &lt;em style="font-style: italic; font-weight: bold; "&gt;BINGO&lt;/em&gt; if the two inputted values are found in the array element. For example:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;input&gt;java prob3 3 29 output&gt;Your first number was 3        Your second number was 29        Its Bingo! // this message if 3 and 29 is found in the array        Bokya!     // this message if 3 and 29 is not found in the array        The array was 7 25 5 19 30&lt;/pre&gt;&lt;p style="text-align: left; "&gt;An &lt;em style="font-style: italic; font-weight: bold; "&gt;extension&lt;/em&gt; for problem 3 would be to generate the array of five unique integers using &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor6.htm#ma" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;random numbers&lt;/a&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Problem 4:&lt;/em&gt; Create a program using &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm#lo" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;loops&lt;/a&gt; to form this figure:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;         n=3                n=4           *                  *          *$*                *$*         *$*$*              *$*$*          *$*              *$*$*$*           *                *$*$*                             *$*                              *&lt;/pre&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;button onclick="window.location.href=&amp;quot;mailto:VE3LL@COGECO.CA?Subject=[jp1basics]&amp;quot;" style="padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; overflow-x: visible; overflow-y: visible; "&gt;HELP Me! [Add message as to what is wanted]&lt;/button&gt; &lt;button onclick="window.location.href=&amp;quot;bin2/jp1basics.zip&amp;quot;" style="padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; overflow-x: visible; overflow-y: visible; "&gt;Get Source Code&lt;/button&gt;&lt;/div&gt;&lt;h2 id="mc" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Project: Metric Converter&lt;/h2&gt;&lt;p style="text-align: left; "&gt;This project tests your knowledge of syntax without getting too involved in the complexities of object manipulation or a user interface. A toy metric converter should be just about right as it allows three basic stages of application development; IPO, branching, and switch selection.&lt;/p&gt;&lt;h3 style="font-size: 125%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(50, 205, 50); color: rgb(0, 0, 0); width: 100%; text-indent: 5px; background-position: initial initial; "&gt;The First Stage [Input - Process - Output]&lt;/h3&gt;&lt;p style="text-align: left; "&gt;The goal of the first stage of this project is to input from the command line a temperature given in degrees Fahrenheit (a geezer's unit), calculate the value in Celsius (the modern way) and then display the answer. This will test your ability to get some &lt;em style="font-style: italic; font-weight: bold; "&gt;input&lt;/em&gt;, do a math &lt;em style="font-style: italic; font-weight: bold; "&gt;process&lt;/em&gt; and finally display the &lt;em style="font-style: italic; font-weight: bold; "&gt;output&lt;/em&gt;. It also gives some practice working with the development environment and doing compilations.&lt;/p&gt;&lt;p style="text-align: left; "&gt;The basic &lt;em style="font-style: italic; font-weight: bold; "&gt;input&lt;/em&gt; procedure will be to get the Fahrenheit reading from the command line using the method&lt;em style="font-style: italic; font-weight: bold; "&gt;Integer.parseInt(args[0])&lt;/em&gt; which returns an integer from the first argument on the command line.&lt;/p&gt;&lt;p style="text-align: left; "&gt;The math &lt;em style="font-style: italic; font-weight: bold; "&gt;processing&lt;/em&gt; part is really easy. Celsius, a scientist, used water as his gauge so freezing was 0 and boiling was 100. Fahrenheit, an engineer used a more commonly available liquid, alcohol for his range :-). As alcohol freezes at lower temperatures, that is why the 32° difference. Because of the difference in range from freezing to boiling of the two liquids the ratio of size of the units turns out to be 100 to 180 or 5 to 9. This is the basic principle for the formula&lt;em style="font-style: italic; font-weight: bold; "&gt;deg_C=((deg_F-32) * 5)/9&lt;/em&gt;. Since division may produce a real number with a decimal value, you should cast the input number into a &lt;em style="font-style: italic; font-weight: bold; "&gt;double&lt;/em&gt; and work with double precision floating point numbers (aka real numbers). &lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Caution:&lt;/span&gt; Be sure to rewrite the formula with decimal numbers!&lt;/p&gt;&lt;p style="text-align: left; "&gt;Once the answer is calculated, it can be &lt;em style="font-style: italic; font-weight: bold; "&gt;output&lt;/em&gt; to your display by using the method &lt;em style="font-style: italic; font-weight: bold; "&gt;System.out.println(deg_C)&lt;/em&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Note:&lt;/em&gt; This program must be run from the command line with an integer following the program name. No error checking has been done yet!&lt;/p&gt;&lt;h3 style="font-size: 125%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(50, 205, 50); color: rgb(0, 0, 0); width: 100%; text-indent: 5px; background-position: initial initial; "&gt;Second Stage [Branching]&lt;/h3&gt;&lt;p style="text-align: left; "&gt;The second stage is to modify the application so that the conversion can be made in either direction. This will require a logical branch based on some additional input. Let's say the input has to look like &lt;em style="font-style: italic; font-weight: bold; "&gt;40 F&lt;/em&gt; or &lt;em style="font-style: italic; font-weight: bold; "&gt;10 C&lt;/em&gt;&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;    char units=args[1].charAt(0);     units=Character.toUpperCase(units);     if (units == 'F')     {     //do F --&gt; C conversion     }     else     {     //do C --&gt; F conversion     }&lt;/pre&gt;&lt;p style="text-align: left; "&gt;Also the command line should be checked to make sure that the number of arguments is correct (which we failed to do in stage one). A simple error message can be printed after checking the count such as:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;    if (args.length != 2)     {       System.out.println ("Usage: Metric_2 ## F|C");       return;     }&lt;/pre&gt;&lt;h3 style="font-size: 125%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(50, 205, 50); color: rgb(0, 0, 0); width: 100%; text-indent: 5px; background-position: initial initial; "&gt;Third Stage [Switches]&lt;/h3&gt;&lt;p style="text-align: left; "&gt;&lt;strong style="font-weight: bold; "&gt;The third stage&lt;/strong&gt; is to use the units argument to select an appropriate conversion routine (temperature, mass, distance, etc.) and &lt;em style="font-style: italic; font-weight: bold; "&gt;switch&lt;/em&gt; to routines accordingly. For our program just add routines to convert lbs to kilograms and kg to lbs. This stage maxes out the limits of programming in the small. In later tutorials you will learn how to use custom objects to &lt;em style="font-style: italic; font-weight: bold; "&gt;encapsulate&lt;/em&gt; data and procedures as well as how to use &lt;em style="font-style: italic; font-weight: bold; "&gt;GUI objects&lt;/em&gt; to allow for interactive input.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;switch (units) {   case 'F': { /* conversion routine */ } ; break;   case 'C': { /* conversion routine */ } ; break;   case 'L': { /* conversion routine */ } ; break;   case 'K': { /* conversion routine */ } ; break;   default : System.out.println("Oops! I do not understand the units..."); }&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: 'courier new'; font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: 'courier new'; font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;BIBLIOGRAPHY / REFERENCE : -&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;FOR REFERENCE....PLEASE VISIT :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor3.htm"&gt;http://home.cogeco.ca/~ve3ll/jatutor3.htm&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;P.S. : THIS CONTENT IS TAKEN FROM THE ABOVE MENTIONED SITE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-6765861346751681797?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/6765861346751681797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/note-this-is-not-original-content.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/6765861346751681797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/6765861346751681797'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/note-this-is-not-original-content.html' title='Tutorial 3 - Control Flow'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-5020473993845333363</id><published>2009-05-16T12:38:00.000-07:00</published><updated>2009-05-16T12:41:27.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA TUTORIALS - PART 5'/><title type='text'>Tutorial 2 - Syntax &amp; Grammar</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;NOTE : -  THIS IS NOT THE ORIGINAL CONTENT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h1 style="font-size: 200%; font-family: cursive; font-weight: bold; text-align: center; clear: both; display: block; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; margin-top: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Tutorial 2 - Syntax &amp;amp; Grammar&lt;/h1&gt;&lt;p style="text-align: left; "&gt;Java like many languages (eg. C, JavaScript, awk, perl) is based on a common syntax and grammar developed by the Bell Labs in the 60's. This makes it easy to cross over from one language to another based on program requirements, resources and politics. This tutorial on basic Java syntax and grammar (ie. programming in the small) assumes some introductory programming experience in another language.&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#le" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;lexical structure&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#ty" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;data types&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#li" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;literal constants&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#va" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;variables&lt;/a&gt; and &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#ar" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;arrays&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#op" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;operators and expressions&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#co" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;conditions,statements,blocks&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 id="le" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Lexical Structure&lt;/h2&gt;&lt;p style="text-align: left; "&gt;The lexical structure of a programming language is the set of elementary rules that define what are the &lt;em style="font-style: italic; font-weight: bold; "&gt;tokens&lt;/em&gt; or basic atoms of the program. It is the lowest level syntax of a language and specifies what is punctuation, reserved words, identifiers, constants and operators. Some of the basic rules for Java are:&lt;/p&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java &lt;em style="font-style: italic; font-weight: bold; "&gt;is&lt;/em&gt; case sensitive.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Whitespace, tabs, and newline characters are ignored except when part of string constants. They can be added as needed for readability.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Single line comments begin with //&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Multiline comments begin with /* and end with */&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Documentary comments begin with /** and end with **/&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Statements terminate in semicolons! Make sure to &lt;em style="font-style: italic; font-weight: bold; "&gt;always&lt;/em&gt; terminate statements with a semicolon.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Commas are used to separate words in a list&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Round brackets are used for operator precedence and argument lists.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Square brackets are used for arrays and square bracket notation.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Curly or brace brackets are used for blocks.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Keywords&lt;/em&gt; are reserved words that have special meanings within the language syntax.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Identifiers&lt;/em&gt; are names for constants, variables, functions, properties, methods and objects. The first character&lt;em style="font-style: italic; font-weight: bold; "&gt;must&lt;/em&gt; be a letter, underscore or dollar sign. Following characters can also include digits. Letters are A to Z, a to z, and Unicode characters above hex 00C0. Java styling uses initial capital letter on object identifiers, uppercase for constant ids and lowercase for property, method and variable ids.&lt;br /&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note:&lt;/span&gt; an identifier must &lt;em style="font-style: italic; font-weight: bold; "&gt;NOT&lt;/em&gt; be any word on the &lt;a href="http://home.cogeco.ca/~ve3ll/jatutorx.htm#rw" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Java Reserved Word List&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id="ty" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Data Types&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Java is a &lt;em style="font-style: italic; font-weight: bold; "&gt;strongly-typed&lt;/em&gt; language. Its primitive data types are:&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Type&lt;/th&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Bits&lt;/th&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Range&lt;/th&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;boolean&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;1&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;true, false&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;char&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;16&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;0 to 65,535&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;byte&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;8&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;-128 to +127&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;short&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;16&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;-32,768 to +32,767&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;int&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;32&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;-2&lt;sup&gt;32&lt;/sup&gt; to +2&lt;sup&gt;32&lt;/sup&gt;-1&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;long&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;64&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;-2&lt;sup&gt;64&lt;/sup&gt; to +2&lt;sup&gt;64&lt;/sup&gt;-1&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;float&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;32&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;-3.4E+38 to +3.4E+38 (approx)&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;double&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;64&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;-1.8E+308 to +1.8E+308 (approx)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 id="li" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Literal Constants&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Literal constants&lt;/em&gt; are values that do not change within a program. Numeric constants default to integer or double unless a suffix is appended. Note that a character can be represented by an ASCII equivalent. The literal &lt;em style="font-style: italic; font-weight: bold; "&gt;types&lt;/em&gt; are:&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Boolean:&lt;/em&gt; true, false&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Character:&lt;/em&gt; 'c', '\f'&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;String:&lt;/em&gt; "Fred", "B and E"&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Null:&lt;/em&gt; null&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Integer:&lt;/em&gt; 5, 0xFF (hexadecimal)&lt;br /&gt;     073 [leading zero] (octal), 5l (long), 0xFFlD (hex)&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Floating Point:&lt;/em&gt; 2.543, -4.1E-6 (double)&lt;br /&gt;     2.543f, 8e12f (float)&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note:&lt;/span&gt; Do not use leading zeros to format integers as this can cause an unintended octal meaning. Use spaces instead!&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Escape (aka backslash) characters&lt;/em&gt; are used inside literal strings to allow print formatting as well as preventing certain characters from causing interpretation errors. Each escape character starts with a backslash. The available character sequences are:&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Seq&lt;/th&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Name&lt;/th&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Seq&lt;/th&gt;&lt;th class="col" style="width: auto; margin-left: auto; margin-right: auto; border-style: initial; border-color: initial; text-align: center; vertical-align: top; color: rgb(0, 0, 0); background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 153); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; background-position: initial initial; "&gt;Name&lt;/th&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\b&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;backspace&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\f&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;formfeed&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\t&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;horizontal tab&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\"&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;double quote&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\n&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;newline&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\'&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;single quote&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\r&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;carriage return&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\\&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;backslash&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\###&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;Latin encoded character&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;\uHHHH&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;Unicode encoded character&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 id="va" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Variables&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Variables&lt;/em&gt; are temporary data holders. Variable names are &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm#le" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;identifiers&lt;/a&gt;. Variables are &lt;em style="font-style: italic; font-weight: bold; "&gt;declared&lt;/em&gt; with a &lt;em style="font-style: italic; font-weight: bold; "&gt;datatype&lt;/em&gt;. Java is a &lt;em style="font-style: italic; font-weight: bold; "&gt;strongly&lt;/em&gt; typed language as the variable can only take a value that matches its declared type. This enforces good programming practice and reduces errors considerably. When variables are declared they may or may not be assigned or take on a value (initialized). Examples of each of the primitive datatypes available in Java are as follows:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;byte x,y,z;             /* 08bits long, not assigned, multiple declaration */ short numberOfChildren; /* 16bits long */ int counter;            /* 32bits long */ long WorldPopulation;   /* 64bits long */  float pi;               /* 32bit single precision */ double avagadroNumber;  /* 64bit double precision */ boolean signal_flag;    /* true or false only */ char c;                 /* 16bit single Unicode character */&lt;/pre&gt;&lt;p style="text-align: left; "&gt;Variables can be made &lt;em style="font-style: italic; font-weight: bold; "&gt;constant&lt;/em&gt; or &lt;em style="font-style: italic; font-weight: bold; "&gt;read only&lt;/em&gt; by prepending the modifier &lt;em style="font-style: italic; font-weight: bold; "&gt;final&lt;/em&gt; to the declaration. Java convention uses all uppercase for &lt;em style="font-style: italic; font-weight: bold; "&gt;final&lt;/em&gt; variable names.&lt;/p&gt;&lt;h2 id="ar" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Arrays&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Arrays&lt;/em&gt; allow you to store several related values in the same variable (eg. a set of marks). &lt;em style="font-style: italic; font-weight: bold; "&gt;Declaration&lt;/em&gt; of an array only forms a &lt;em style="font-style: italic; font-weight: bold; "&gt;prototype&lt;/em&gt; or specification for the array. Multi-dimensional arrays are considered to be arrays of arrays (of arrays...). Note that in a declaration the brackets are left blank.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int i[];        /* one dimension array */ char c[][];     /* two dimension array */ float [] f;     /* geek speak way */ Bowl shelfA[];  /* array of objects */&lt;/pre&gt;&lt;p style="text-align: left; "&gt;Array memory &lt;em style="font-style: italic; font-weight: bold; "&gt;allocation&lt;/em&gt; is assigned explicitly with the &lt;em style="font-style: italic; font-weight: bold; "&gt;new&lt;/em&gt; operator and requires known static &lt;em style="font-style: italic; font-weight: bold; "&gt;bounds&lt;/em&gt; (ie. number of elements). The number of items in an array can then be determined by accessing its &lt;em style="font-style: italic; font-weight: bold; "&gt;length&lt;/em&gt; property. For a two dimensional array named &lt;em style="font-style: italic; font-weight: bold; "&gt;m&lt;/em&gt;, &lt;em style="font-style: italic; font-weight: bold; "&gt;m.length&lt;/em&gt; gives the number of elements in its first dimension and &lt;em style="font-style: italic; font-weight: bold; "&gt;m[0].length&lt;/em&gt; gives the number of elements in its second dimension.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;Array1 = new int[5]; //previously declared, now created int markArray[] = new int[9]; //declaration and allocation at same time int grades[] = new int[maxMarks]; //maxMarks must be a positive integer&lt;/pre&gt;&lt;p style="text-align: left; "&gt;Array &lt;em style="font-style: italic; font-weight: bold; "&gt;initialization&lt;/em&gt; can take place at declaration. Size of the array is determined by the contents.&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;String flintstones[] = {"Fred", "Wilma", "Pebbles"}; //init values String pairs[][] = {  {"Adam","Eve"},{"Lucy","Ricky"},{"Fred","Ethel"},{"Bert","Ernie"}};&lt;/pre&gt;&lt;h2 id="op" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Operators and Expressions&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Operators&lt;/em&gt; are actions that manipulate, combine or compare variables. They fall into several categories as follows:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;Assignment:           = += -= *= \= %= Arithmetic:           + - * / % (modulus) ++ (increment) -- (decrement) String Concatenation: + Comparison:           == != &gt; &gt;= &lt; &lt;= Boolean Comparison:   ! &amp;amp; | ^ &amp;amp;&amp;amp; || (&amp;amp;&amp;amp; are short circuit ops) Bitwise Comparison:   ~ &amp;amp; | ^ (xor) &lt;&lt; &gt;&gt; &gt;&gt;&gt; Bitwise Assignment:   &amp;amp;= |= ^= (xor) &lt;&lt;= &gt;&gt;= &gt;&gt;&gt;= Conditional:          ? (eg (expr1) ? expr2 : expr3 ) Object Creation:      new (eg int a[] = new int[10];) Class of Object:      instanceof Casting of Type:      (var_type)&lt;/pre&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note:&lt;/span&gt; Changes in data type are done &lt;em style="font-style: italic; font-weight: bold; "&gt;explicitly&lt;/em&gt; using a &lt;em style="font-style: italic; font-weight: bold; "&gt;cast operation&lt;/em&gt;. For example &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;a = (int) b; &lt;/span&gt;assumes a is of type int and b is of another type.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Expressions&lt;/em&gt; are &lt;em style="font-style: italic; font-weight: bold; "&gt;phrases&lt;/em&gt; used to combine values and/or operands using operators to create a new value. One example of an expression is &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;5 + 3&lt;/span&gt;.&lt;/p&gt;&lt;h2 id="co" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Conditions, Statements and Blocks&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Conditions&lt;/em&gt; are &lt;em style="font-style: italic; font-weight: bold; "&gt;phrases&lt;/em&gt; that can be evaluated to a &lt;em style="font-style: italic; font-weight: bold; "&gt;boolean&lt;/em&gt; value such as a &lt;em style="font-style: italic; font-weight: bold; "&gt;comparison&lt;/em&gt; operator between two constants, variables or expressions used to &lt;em style="font-style: italic; font-weight: bold; "&gt;test&lt;/em&gt; a dynamic situation. Examples are &lt;em style="font-style: italic; font-weight: bold; "&gt;x &lt;= 5&lt;/em&gt; and &lt;em style="font-style: italic; font-weight: bold; "&gt;bool_flag != true&lt;/em&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Statements&lt;/em&gt; are complete program instructions made from constants, variables, expressions and conditions. Statements &lt;em style="font-style: italic; font-weight: bold; "&gt;always&lt;/em&gt; end with a semicolon. A program contains one or more statements.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Assignment statements&lt;/em&gt; use an assignment operator to store a value or the result of an expression in a variable. Memory &lt;em style="font-style: italic; font-weight: bold; "&gt;allocation&lt;/em&gt; is done at the time of assignment. Primitive datatypes have &lt;em style="font-style: italic; font-weight: bold; "&gt;static allocation&lt;/em&gt; with size determined by their type. Simple examples include &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;first_name = "Fred";&lt;/span&gt; and &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;count +=;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;Variables &lt;em style="font-style: italic; font-weight: bold; "&gt;may&lt;/em&gt; be assigned an initial value when declared. This is considered good programming practice. Examples are &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;boolean fileOpenFlag = true;&lt;/span&gt;, &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;int finalScore = null; &lt;/span&gt;and &lt;span class="g" style="color: green; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;final float PI = 3.14159;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;Array variables can use a shortcut method of initial value assignment. Examples are:&lt;/p&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;int v[] = {2,4,20}; //declaration/creation/assignment in one step! int m[][] = {{2,3,4}, {4,5,6}, {1,1,1}}; // two dimensional array&lt;/pre&gt;&lt;p style="text-align: left; "&gt;Local variables &lt;em style="font-style: italic; font-weight: bold; "&gt;must&lt;/em&gt; be assigned a value prior to use. There is no default assumption. Failure to initialize will cause a compiler error! &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor4.htm#va" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Field variables (aka properties)&lt;/a&gt; have defaults but initialization is good programming practice.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Execution blocks&lt;/em&gt; are sets or lists of statements enclosed in curly brackets. Variables maintain their definition (or 'scope') until the end of the &lt;em style="font-style: italic; font-weight: bold; "&gt;execution block&lt;/em&gt; that they are &lt;em style="font-style: italic; font-weight: bold; "&gt;defined&lt;/em&gt; in. This is the reason why variable &lt;em style="font-style: italic; font-weight: bold; "&gt;declaration&lt;/em&gt;and &lt;em style="font-style: italic; font-weight: bold; "&gt;assignment&lt;/em&gt; can be a two step process.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note:&lt;/span&gt; It is a good rule of thumb to declare variables in as nested a scope as possible to limit the chance of spurious assignment.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Beware:&lt;/span&gt; A variable's content can be &lt;em style="font-style: italic; font-weight: bold; "&gt;hidden&lt;/em&gt; by &lt;em style="font-style: italic; font-weight: bold; "&gt;redeclaration&lt;/em&gt; of its name within a &lt;em style="font-style: italic; font-weight: bold; "&gt;nested&lt;/em&gt; execution block. At times this is convenient but beginning programmers should avoid reuse (ie. 'overload') of variable names.&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;BIBLIOGRAPHY / REFERENCE : -&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;FOR REFERENCE....PLEASE VISIT :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Georgia; font-size: 16px; font-style: normal; font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;span class="Apple-style-span" style="font-size: 24px; "&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0); "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor2.htm"&gt;http://home.cogeco.ca/~ve3ll/jatutor2.htm&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;P.S. : THIS CONTENT IS TAKEN FROM THE ABOVE MENTIONED SITE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-5020473993845333363?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/5020473993845333363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/tutorial-2-syntax-grammar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/5020473993845333363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/5020473993845333363'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/tutorial-2-syntax-grammar.html' title='Tutorial 2 - Syntax &amp; Grammar'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-5407823247184710394</id><published>2009-05-16T12:29:00.000-07:00</published><updated>2009-05-16T12:36:50.783-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA TUTORIALS - PART 4'/><title type='text'>Tutorial 1 - Objects, Applications &amp; Applets</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;NOTE : -  THIS IS NOT THE ORIGINAL CONTENT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman'; "&gt;&lt;h1 style="font-size: 200%; font-family: cursive; font-weight: bold; text-align: center; clear: both; display: block; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; margin-top: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Tutorial 1 - Objects, Applications &amp;amp; Applets&lt;/h1&gt;&lt;p style="text-align: left; "&gt;The first Java tutorial covers the topic of objects/classes as well as outlining the basic structure of Java applications and applets.&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#ob" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;What Are Objects&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#pr" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Basic Structure of an Application&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#ap" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;The Basic Structure of an Applet&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#ht" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Applets in XHTML Docs&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#li" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Life Cycle of an Applet&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#ca" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Cautions About Applet Use&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 id="ob" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;What Are Objects&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Java is an &lt;em style="font-style: italic; font-weight: bold; "&gt;object-oriented&lt;/em&gt; programming language. But what are objects? An &lt;em style="font-style: italic; font-weight: bold; "&gt;object&lt;/em&gt; is a self-contained entity which has its own private collection of &lt;em style="font-style: italic; font-weight: bold; "&gt;properties&lt;/em&gt; (ie. data) and &lt;em style="font-style: italic; font-weight: bold; "&gt;methods&lt;/em&gt; (ie. operations) that &lt;em style="font-style: italic; font-weight: bold; "&gt;encapsulate&lt;/em&gt; functionality into a reusable and dynamically loaded structure. After a &lt;em style="font-style: italic; font-weight: bold; "&gt;class&lt;/em&gt; definition has been created as a &lt;em style="font-style: italic; font-weight: bold; "&gt;prototype&lt;/em&gt;, it can be used as a template for creating new classes that add functionality. Objects are programing units of a particular class. Dynamic loading implies that applications can request new objects of a particular class to be supplied on an 'as needed' basis. Objects provide the extremely useful benefit of &lt;em style="font-style: italic; font-weight: bold; "&gt;reusable&lt;/em&gt; code that minimizes development time.&lt;/p&gt;&lt;h2 id="pr" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;The Basic Structure of an Application&lt;/h2&gt;&lt;p style="text-align: left; "&gt;A Java &lt;em style="font-style: italic; font-weight: bold; "&gt;application&lt;/em&gt; resembles a program in most compiled languages. Compiled &lt;em style="font-style: italic; font-weight: bold; "&gt;bytecode&lt;/em&gt; resides on the user's machine and is executed by a run-time interpreter that has to be user installed.&lt;/p&gt;&lt;p style="text-align: auto;"&gt;Previously you wrote a simple 'hello world!' application to test the development environment. Now comes the explanation of the basic structure of a Java application using it as an example. &lt;em style="font-style: italic; font-weight: bold; "&gt;Applications&lt;/em&gt; are stand alone programs and are executed by using a Java interpreter.&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: auto;"&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-weight: bold; white-space: pre-wrap; "&gt;/* The HelloWorldApp class implements an application  * that displays "Hello World!" to the standard output. */ public class HelloWorldApp {     public static void main(String args[])     {         // Display Hello World! now         System.out.println("Hello World!");     } }&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-weight: bold; white-space: pre;"&gt;The first two lines is a comment statement about the application's function. Comments are not required but are extremely useful as documentation within the source. Other notes and doc files may get lost but these stay right where they are most useful. A long comment starts with a /* or /** and ends with a */ Short&lt;/span&gt; &lt;em style="font-style: italic; font-weight: bold; "&gt;one line&lt;/em&gt; comments begin with // and end with the &lt;return&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;The third line starts with the reserved word &lt;em style="font-style: italic; font-weight: bold; "&gt;public&lt;/em&gt;. This indicates that objects outside the object can invoke (ie call or use) it. The reserved word &lt;em style="font-style: italic; font-weight: bold; "&gt;class&lt;/em&gt; indicates that we are building a new object &lt;em style="font-style: italic; font-weight: bold; "&gt;specification&lt;/em&gt; (aka template) with the name that follows. &lt;em style="font-style: italic; font-weight: bold; "&gt;HelloWorldApp&lt;/em&gt; is the class name (your choice) and is case sensitive. Java 'style' capitalizes only the first letter of each class name. Line four is an opening curly bracket that marks the start of the class definition.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Line five is the specification of a &lt;em style="font-style: italic; font-weight: bold; "&gt;method&lt;/em&gt; (aka procedure in older languages). &lt;em style="font-style: italic; font-weight: bold; "&gt;static&lt;/em&gt; indicates that it calls a class method and not an 'instance' method. The method's name is &lt;em style="font-style: italic; font-weight: bold; "&gt;main&lt;/em&gt; and the reserved word &lt;em style="font-style: italic; font-weight: bold; "&gt;void&lt;/em&gt; indicates that no result is returned. main has &lt;em style="font-style: italic; font-weight: bold; "&gt;parameters&lt;/em&gt; in round brackets. &lt;em style="font-style: italic; font-weight: bold; "&gt;String args[]&lt;/em&gt; indicates that any command line argument values given are being passed to main as an array of String type in the variable args. Line six has an opening bracket for the main() method.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Line eight invokes the &lt;em style="font-style: italic; font-weight: bold; "&gt;println()&lt;/em&gt; method of the &lt;em style="font-style: italic; font-weight: bold; "&gt;system.out&lt;/em&gt; object. The data to be printed is passed in the argument as a string datatype. Note that each Java statement concludes with a semicolon. Finally, closing curly brackets are used for the main and for the object definition.&lt;/p&gt;&lt;h2 id="ap" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;The Basic Structure of an Applet&lt;/h2&gt;&lt;p style="text-align: left; "&gt;A Java &lt;em style="font-style: italic; font-weight: bold; "&gt;applet&lt;/em&gt; produces object code which can be interpreted within the user's browser. This means that naive users do not have to fuss with program installation. Applets also provide security by restricting local user resource access. Applets can be useful, &lt;em style="font-style: italic; font-weight: bold; "&gt;user friendly&lt;/em&gt; programs as demoed by &lt;a href="http://www.101science.com/chemJAVA.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;ChemJava&lt;/a&gt; or a lot of fun as seen on &lt;a href="http://www.jigzone.com/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Jigzone&lt;/a&gt;.&lt;/p&gt;&lt;p style="text-align: auto;"&gt;Here is the explanation of the basic structure of a Java applet using the one that you wrote to test your working environment. Applets are placed in XHTML documents and are executed from within a Java aware browser.&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: auto;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: auto;"&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-weight: bold; white-space: pre-wrap; "&gt;/* The HelloWorld class implements an applet that    displays "Hello World!" within an XHTML document. */ import java.awt.*; import java.applet.*; public class HelloWorld extends Applet {   public void init()  // Initialize the canvas   {     Color lightgray=new Color(211,211,211); // customize     setBackground(lightgray);  // make mellow background     resize(150,10);   }   public void paint(Graphics g)  // Display Hello World!   {     g.drawString("Hello World!",50,25);   } }&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-weight: bold; white-space: pre;"&gt;Line three uses the reserved word&lt;/span&gt; &lt;em style="font-style: italic; font-weight: bold; "&gt;import&lt;/em&gt; which indicates that objects from external &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor6.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;libraries&lt;/a&gt; awt and applet are going to be used. Line four uses the reserved word &lt;em style="font-style: italic; font-weight: bold; "&gt;extends&lt;/em&gt; to indicate that the class being created is a subclass of the Applet class. This demonstrates how Java code is reused and &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor5.htm#jinh" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;extended&lt;/a&gt;.&lt;br /&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note:&lt;/span&gt; The JApplet class is used instead of Applet whenever &lt;a href="http://home.cogeco.ca/~ve3ll/jatutora.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Swing GUI&lt;/a&gt; is used.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Line six starts the override (change) of the java.applet.Applet class &lt;em style="font-style: italic; font-weight: bold; "&gt;init()&lt;/em&gt; method. Line eleven invokes the &lt;em style="font-style: italic; font-weight: bold; "&gt;resize()&lt;/em&gt;method of the Applet object and sets the window dimensions. Note the all important statement ending semicolon.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Line 12 is another method override declaration. This time it is the &lt;em style="font-style: italic; font-weight: bold; "&gt;paint()&lt;/em&gt; method of the Applet object. It is being passed an object of the Graphics class called g. Line 14 tells the Graphics object g to invoke its method &lt;em style="font-style: italic; font-weight: bold; "&gt;drawString()&lt;/em&gt;using the string "Hello World! and position it at point (50,25) in the previously assigned window. A later &lt;a href="http://home.cogeco.ca/~ve3ll/jatutorg.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;tutorial&lt;/a&gt; gives details on graphics programming within applets.&lt;/p&gt;&lt;h2 id="ht" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Viewing Applets in XHTML Docs&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Applet&lt;/em&gt; elements are placed inside the &lt;em style="font-style: italic; font-weight: bold; "&gt;body&lt;/em&gt; element of an XHTML document. An applet skeleton is as follows:&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman'; font-size: 16px; white-space: normal; "&gt;&lt;pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); white-space: pre; font-size: 10pt; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;&lt;applet code="HelloWorld.class" codebase="javaProj/" height="70" width="300"&gt;Browser does not support Java applets!&lt;/applet&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;code&lt;/em&gt; points to the previously compiled applet class that is contained in a separate file. &lt;em style="font-style: italic; font-weight: bold; "&gt;codebase&lt;/em&gt; points to the folder that the class file is in. A good choice is place the class folder under the html document. Be sure to &lt;em style="font-style: italic; font-weight: bold; "&gt;explicitly&lt;/em&gt; point at the codebase starting at the html document. If you need to start at a &lt;em style="font-style: italic; font-weight: bold; "&gt;local&lt;/em&gt; root, use &lt;em style="font-style: italic; font-weight: bold; "&gt;file:///C:/&lt;/em&gt;. Anything else fails in FireFox! &lt;em style="font-style: italic; font-weight: bold; "&gt;height&lt;/em&gt; and &lt;em style="font-style: italic; font-weight: bold; "&gt;width&lt;/em&gt; are also required parameters and cannot be moved into style rules. Nested &lt;em style="font-style: italic; font-weight: bold; "&gt;param&lt;/em&gt;element(s) are optional and can be used to feed data to the applet from the XHTML document. An example would be &lt;param name="var_color" value="blue"&gt; The applet would use varColor=getParam("var_color"); to access the value. Always include a message for non-java browsers between the applet element tags. The resulting display is:&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;applet code="HelloWorld.class" codebase="bin2/" height="70" width="300" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(222, 173, 255); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); background-position: initial initial; "&gt;&lt;/applet&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note 1:&lt;/span&gt; Remember that filenames are case sensitive in Java. Some browsers may allow &lt;em style="font-style: italic; font-weight: bold; "&gt;helloworld.class&lt;/em&gt; but Opera obeys the rule! Always test any applet on as many browsers as you can.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note 2:&lt;/span&gt; Although styling attributes such as align, hspace and vspace are mentioned in many texts, they are archaic and should be replaced by CSS style rules. And of course all XHTML documents should have a doctype and validate to current w3.org recommendations.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note 3:&lt;/span&gt; The applet element has been &lt;em style="font-style: italic; font-weight: bold; "&gt;deprecated&lt;/em&gt; and may only be used in &lt;em style="font-style: italic; font-weight: bold; "&gt;Transitional&lt;/em&gt; documents. To use a &lt;em style="font-style: italic; font-weight: bold; "&gt;Strict&lt;/em&gt;doctype you must convert &lt;em style="font-style: italic; font-weight: bold; "&gt;applet&lt;/em&gt; elements to &lt;em style="font-style: italic; font-weight: bold; "&gt;object&lt;/em&gt; elements.The equivalent &lt;em style="font-style: italic; font-weight: bold; "&gt;object&lt;/em&gt; element syntax is more complex as FireFox/Opera have native support for Java while MSIE/Safari use plugins. Refer to &lt;a href="http://home.cogeco.ca/~ve3ll/jaobject.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;object elements&lt;/a&gt; for a demonstration and source code.&lt;/p&gt;&lt;h2 id="li" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Life Cycle of an Applet&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Each Java applet goes through a sequence of stages. They are created (initialized), displayed (painted), paused while off screen (stopped, started) and finally removed (destroyed) when over.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Initialization&lt;/em&gt; occurs when the applet is first loaded. Tasks performed here are creating objects, setting initial state, loading images, fonts, etc. and setting parameters. The method used is &lt;em style="font-style: italic; font-weight: bold; "&gt;init()&lt;/em&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Display&lt;/em&gt; is how things are drawn on screen whether it is text, graphics or background. Redisplay occurs many time through the life of an applet. The method used is &lt;em style="font-style: italic; font-weight: bold; "&gt;paint(Graphics g)&lt;/em&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Stopping&lt;/em&gt; occurs when one leaves a page that contains a running applet. Threads normally continue running but can be manually stopped. The method used is &lt;em style="font-style: italic; font-weight: bold; "&gt;stop()&lt;/em&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Starting&lt;/em&gt; occurs after initialization and after stops occur. Tasks include starting threads, sending messages to helper objects, or to tell the applet to start running. The method used is &lt;em style="font-style: italic; font-weight: bold; "&gt;start()&lt;/em&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Destruction&lt;/em&gt; cleans up an applet before the browser exits. Tasks include thread stopping. Normally the method&lt;em style="font-style: italic; font-weight: bold; "&gt;destroy()&lt;/em&gt; is not overridden.&lt;/p&gt;&lt;h2 id="ca" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Cautions About Applet Use&lt;/h2&gt;&lt;p style="text-align: left; "&gt;The greatest problem with using applets is there is no defined standard implementation method. Some browsers support Java natively (ie. self contained) but this leads to version compatibility issues. Other browsers use a Java plug-in module. But this sometimes requires that the viewer download and install Java. And there are some primitive browsers that offer no Java support at all. Most browsers also open a box that will overwrite any text that the box is scrolled to (ie a high z-index value). At this point &lt;a href="http://home.cogeco.ca/~ve3ll/jsintro.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JavaScript&lt;/a&gt; looks like a more consistent method of utility delivery!&lt;/p&gt;&lt;p style="text-align: left; "&gt;For security purposes, Java applets normally allow NO access to user resources! Local files can not be accessed. Only the current website server can be communicated with. Printers can't be used. If your project can live with those restrictions then an applet may be more appropriate than an application.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; font-weight: bold; background-position: initial initial; "&gt;Note:&lt;/span&gt; Digitally signed applets revealing the author can be accepted by a user and run with full application privileges.&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;BIBLIOGRAPHY / REFERENCE : -&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0); font-size: 24px; font-style: italic; font-weight: bold; "&gt;FOR REFERENCE....PLEASE VISIT :&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0); font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0); font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm"&gt;http://home.cogeco.ca/~ve3ll/jatutor1.htm&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0); font-size: 24px; font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 204, 0);"&gt;P.S. : THIS CONTENT IS TAKEN FROM THE ABOVE MENTIONED SITE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-5407823247184710394?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/5407823247184710394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/tutorial-1-objects-applications-applets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/5407823247184710394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/5407823247184710394'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/tutorial-1-objects-applications-applets.html' title='Tutorial 1 - Objects, Applications &amp; Applets'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-6131876678704532772</id><published>2009-05-16T12:16:00.000-07:00</published><updated>2009-05-16T12:26:55.059-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA TUTORIALS - PART 3'/><title type='text'>JAVA INTRODUCTION : Java Authoring Info</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:'times new roman';"&gt;&lt;h1    style="  font-weight: bold; text-align: center; clear: both; display: block; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; margin-top: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border- padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family:cursive;font-size:200%;color:initial;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;NOTE : -  THIS IS NOT THE ORIGINAL CONTENT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/h1&gt;&lt;h1 style="font-size: 200%; font-family: cursive; font-weight: bold; text-align: center; clear: both; display: block; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; margin-top: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;br /&gt;&lt;/h1&gt;&lt;h1 style="font-size: 200%; font-family: cursive; font-weight: bold; text-align: center; clear: both; display: block; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; margin-top: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Java Authoring Info&lt;/h1&gt;&lt;p class="drop" style="text-indent: 30px; text-align: left; "&gt;ava is a modern, platform independent programming language that is object-oriented for reusability of code modules. This page explains &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#why" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;why&lt;/a&gt; one would use Java (with a few &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#caution" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;cautions&lt;/a&gt;), how one can &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#jdk" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;install&lt;/a&gt; the Development Kit (JDK), and provides &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#sam" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;simple test applications and applets&lt;/a&gt; to make sure everything you need is ready. Links are provided to &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#tut" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;tutorials and code samples&lt;/a&gt; for those who prefer to &lt;em style="font-style: italic; font-weight: bold; "&gt;roll their own&lt;/em&gt; utilities or adapt other's projects. I have also included my own &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#jrt" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Java tutorials&lt;/a&gt; complete with suggested projects that reinforce the material presented.&lt;/p&gt;&lt;h2 id="why" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Why Use Java&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Why should one use Java as an authoring language?&lt;/p&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Modern concepts such as &lt;a href="http://home.cogeco.ca/~ve3ll/csmethod.htm#object" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;object oriented programming&lt;/a&gt; can be rolled over into other languages&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java is &lt;em style="font-style: italic; font-weight: bold; "&gt;easy to learn&lt;/em&gt; as no user programmed memory management or pointers are involved&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java is &lt;a href="http://www.opensource.org/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;open source&lt;/a&gt; and may be modified by any user to his requirements.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java applications and applets are &lt;a href="http://home.cogeco.ca/~ve3ll/csmethod.htm#platform" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;platform independent&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java is &lt;em style="font-style: italic; font-weight: bold; "&gt;robust&lt;/em&gt;, learning from mistakes of older languages&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java is &lt;em style="font-style: italic; font-weight: bold; "&gt;security conscious&lt;/em&gt; and enforces it through a &lt;a href="http://home.cogeco.ca/~ve3ll/csmethod.htm#virtual" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;virtual machine&lt;/a&gt; paradigm&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Java is &lt;em style="font-style: italic; font-weight: bold; "&gt;complete&lt;/em&gt;, and many complex projects such as &lt;a href="http://www.jedit.org/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JEdit&lt;/a&gt; [a syntax aware editor]&lt;br /&gt;and &lt;a href="http://www.alice.org/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Alice&lt;/a&gt; [a 3D programming language] have been developed in Java.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id="caution" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Cautionary Notes&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Do not believe documentation. Test for yourself. Even sun.com makes errors as it does in the System.in.read() method. Keystrokes are read as &lt;em style="font-style: italic; font-weight: bold; "&gt;integers&lt;/em&gt;, not &lt;em style="font-style: italic; font-weight: bold; "&gt;characters&lt;/em&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Be prepared to test Java &lt;em style="font-style: italic; font-weight: bold; "&gt;applets&lt;/em&gt; with at least two versions of each of the major browsers. Remember that there are also browsers that have no Java support whatsoever and that some users turn Java &lt;em style="font-style: italic; font-weight: bold; "&gt;OFF&lt;/em&gt; by choice. This is not a Java problem but one of browser conformance to the w3.org recommendations. The situation is improving however!&lt;/p&gt;&lt;h2 id="jdk" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Installing the Java Developer's Kit&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Sun MicroSystems designed and developed Java and control the 'essence' of the language. The current version of the Java Development Kit is &lt;a href="http://java.sun.com/javase/downloads/index.jsp" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JDK 6-Update 13&lt;/a&gt;. Those with older operating systems may need to consult the &lt;a href="http://java.sun.com/products/archive/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;archives&lt;/a&gt;. If you want to use the Java &lt;em style="font-style: italic; font-weight: bold; "&gt;visual development environment&lt;/em&gt; (IDE), select &lt;em style="font-style: italic; font-weight: bold; "&gt;with NetBeans&lt;/em&gt; instead of the basic JDK. NetBeans also allows visual layout of GUI interfaces once you have learned how to use the Swing class. Other IDEs that you may be interested in are: MicroSoft Visual Studio, &lt;a href="http://drjava.org/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;DrJava&lt;/a&gt;, &lt;a href="http://www.eclipse.org/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Eclipse&lt;/a&gt;, &lt;a href="http://www.codegear.com/products/jbuilder" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JBuilder&lt;/a&gt; and &lt;a href="http://www.jcreator.com/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JCreator&lt;/a&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- font-weight: bold; background-position: initial initial; color:transparent;"&gt;Note:&lt;/span&gt; Although some programmers find using an Interactive Development Environment (IDE) helpful in larger projects, many find learning the IDE confuses them with learning Java itself. A &lt;em style="font-style: italic; font-weight: bold; "&gt;basic&lt;/em&gt; text editor is sufficient for Java. Use the method that you are comfortable with.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Run the &lt;em style="font-style: italic; font-weight: bold; "&gt;installer&lt;/em&gt; program. &lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- font-weight: bold; background-position: initial initial; color:transparent;"&gt;WARNING:&lt;/span&gt; Do not try to change the directory that the JDK loads into. Not all software providers are careful to make the root independent ;-[ ;-[. I came to much grief on that assumption.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- font-weight: bold; background-position: initial initial; color:transparent;"&gt;Wintel User Note:&lt;/span&gt; The system environment variable &lt;em style="font-style: italic; font-weight: bold; "&gt;path&lt;/em&gt; will have to be set within &lt;em style="font-style: italic; font-weight: bold; "&gt;AUTOEXEC&lt;/em&gt; to point at the Java binary file installation directories.&lt;/p&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;th style="width: auto; margin-left: auto; margin-right: auto; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: center; vertical-align: top; "&gt;MSDOS:&lt;/th&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;EDIT Autoexec.bat&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;th style="width: auto; margin-left: auto; margin-right: auto; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: center; vertical-align: top; "&gt;Windows 9x:&lt;/th&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;Start -- Run -- Sysedit&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top; "&gt;&lt;th style="width: auto; margin-left: auto; margin-right: auto; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: center; vertical-align: top; "&gt;Windows XP:&lt;/th&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;Start - Settings - Control Panel - System - Advanced - Environment Variables&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: left; "&gt;You may want to create a &lt;em style="font-style: italic; font-weight: bold; "&gt;classroom&lt;/em&gt; or &lt;em style="font-style: italic; font-weight: bold; "&gt;playground&lt;/em&gt; folder for your project java class files that need access from anywhere. Add this folder name to the &lt;em style="font-style: italic; font-weight: bold; "&gt;classpath&lt;/em&gt; system environment variable. &lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- font-weight: bold; background-position: initial initial; color:transparent;"&gt;Note:&lt;/span&gt; Make sure the &lt;em style="font-style: italic; font-weight: bold; "&gt;classpath&lt;/em&gt; string starts with &lt;em style="font-style: italic; font-weight: bold; "&gt;.;&lt;/em&gt; so that the current directory is searched before other directories are.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- font-weight: bold; background-position: initial initial; color:transparent;"&gt;Wintel User Note:&lt;/span&gt; NotePad will do as an editor but several features of more advanced editors are helpful. A &lt;em style="font-style: italic; font-weight: bold; "&gt;very strongly&lt;/em&gt; recommended choice is &lt;a href="http://www.textpad.com/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;TextPad&lt;/a&gt; which is Java aware (reserved words and punctuation are color coded) and can handle multiple files for easy cut-and-paste. If you install TextPad, be sure to place the Java quick compilation items in the tools menu by using &lt;em style="font-style: italic; font-weight: bold; "&gt;Configure - Preferences - Tools - Add - Sdk&lt;/em&gt;.&lt;/p&gt;&lt;h2 id="sam" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Test Samples&lt;/h2&gt;&lt;p style="text-align: left; "&gt;&lt;a href="http://www.java.com/en/download/installed.jsp" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;java.com&lt;/a&gt; will run a check to verify that the &lt;em style="font-style: italic; font-weight: bold; "&gt;Java Runtime Environment (JRE)&lt;/em&gt; has been installed correctly.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Use the following simple HelloWorld &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#prog1" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;application&lt;/a&gt; and &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#appl1" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;applet&lt;/a&gt; to test that the SDK development environment has been installed correctly. For a complete explanation of the code's syntax, refer to the first tutorial on &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Objects, Applications and Applets&lt;/a&gt;.&lt;/p&gt;&lt;h3 id="prog1" style="font-size: 125%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(50, 205, 50); color: rgb(0, 0, 0); width: 100%; text-indent: 5px; background-position: initial initial; "&gt;Your First Java Application&lt;/h3&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;textarea class="all" cols="60" rows="10" readonly="readonly" style="border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); font-weight: bold; font-size: 10pt; white-space: pre; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-style: normal; white-space: pre-wrap; "&gt;/* The HelloWorldApp class implements an application that  * displays "Hello World!" to the standard output device. */ public class HelloWorldApp {   public static void main(String args[])   {     // Display "Hello World!"     System.out.println("Hello World!");   } }&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Cut and paste&lt;/em&gt; the above source code or type it into your favorite editor. Save the file as &lt;em style="font-style: italic; font-weight: bold; "&gt;HelloWorldApp.java&lt;/em&gt; in your Java working folder (say JavaStuff, JavaTutor, sandbox, etc.).&lt;/p&gt;&lt;p style="text-align: left; "&gt;Next compile the source file into bytecode by using the command &lt;em style="font-style: italic; font-weight: bold; "&gt;javac HelloWorldApp.java&lt;/em&gt;. If an error message stating &lt;em style="font-style: italic; font-weight: bold; "&gt;Not Found&lt;/em&gt; occurs, type the command &lt;em style="font-style: italic; font-weight: bold; "&gt;javac&lt;/em&gt;. If there is still an error message it means that the &lt;em style="font-style: italic; font-weight: bold; "&gt;path&lt;/em&gt; needs setting (see the above note on &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#jdk" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;installing&lt;/a&gt;). If there is no error at this point then the .java file is missing or there was a typing error. Most typing errors are due to &lt;em style="font-style: italic; font-weight: bold; "&gt;case sensitivity&lt;/em&gt;. In Java, UPPER and lower case &lt;strong style="font-weight: bold; "&gt;ARE&lt;/strong&gt; different.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Finally run the application with the Java interpreter by using the command &lt;em style="font-style: italic; font-weight: bold; "&gt;Java HelloWorldApp&lt;/em&gt;. For a complete explanation of the code's syntax, please refer to &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#pr" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Basic Structure of a Java Application&lt;/a&gt;.&lt;/p&gt;&lt;h3 id="appl1" style="font-size: 125%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(50, 205, 50); color: rgb(0, 0, 0); width: 100%; text-indent: 5px; background-position: initial initial; "&gt;Your First Java Applet&lt;/h3&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;textarea class="all" cols="60" rows="16" readonly="readonly" style="border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); font-weight: bold; font-size: 10pt; white-space: pre; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-style: normal; white-space: pre-wrap; "&gt;/* The HelloWorld class implements an applet that  * displays "Hello World!" within an html document.*/ import java.awt.*; import java.applet.*; public class HelloWorld extends Applet {   public void init() // Initialize canvas   {     Color lightgray=new Color(211,211,211); // customize     setBackground(lightgray);  // make mellow background     resize(250,50);   }   public void paint(Graphics g) // Display "Hello World!"   {     g.drawString("Hello World!",60,25);   } }&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;Cut and paste&lt;/em&gt; the above source code or type it into your favorite editor. Save the file as &lt;em style="font-style: italic; font-weight: bold; "&gt;HelloWorld.java&lt;/em&gt; in your Java working folder (say JavaStuff, JavaTutor, sandbox, etc.).&lt;/p&gt;&lt;p style="text-align: left; "&gt;Next compile the source into bytecode by using the command &lt;em style="font-style: italic; font-weight: bold; "&gt;javac HelloWorld.java&lt;/em&gt;. If an error message stating&lt;em style="font-style: italic; font-weight: bold; "&gt;Not Found&lt;/em&gt; occurs, type the command &lt;em style="font-style: italic; font-weight: bold; "&gt;javac&lt;/em&gt;. If there is still an error message it means that the &lt;em style="font-style: italic; font-weight: bold; "&gt;path&lt;/em&gt; needs setting (see the above note on &lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm#jdk" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;installing&lt;/a&gt;). If there is no error at this point then the .java file is missing or there was a typing error. Most typing errors are due to &lt;em style="font-style: italic; font-weight: bold; "&gt;case sensitivity&lt;/em&gt;. In Java, UPPER and lower case &lt;strong style="font-weight: bold; "&gt;ARE&lt;/strong&gt; different.&lt;/p&gt;&lt;p style="text-align: left; "&gt;Next create an html document that includes the following in its body.&lt;/p&gt;&lt;div class="c" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: center; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;textarea class="all" cols="68" rows="1" readonly="readonly" style="border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 255); color: rgb(0, 0, 0); font-weight: bold; font-size: 10pt; white-space: pre; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-position: initial initial; "&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;div class="c" style="text-align: auto;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-weight: bold; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="c" style="text-align: auto;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; "&gt;&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; font-weight: bold; white-space: pre;"&gt;&lt;span class="Apple-style-span" style="white-space: pre-wrap; "&gt;&lt;applet code="HelloWorld.class" width="150" height="100"&gt;&lt;/applet&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="text-align: left; "&gt;Now view the html document in your favorite browser. For a complete explanation of the applet's syntax, please refer to &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor1.htm#ap" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Basic Structure of a Java Applet&lt;/a&gt;.&lt;/p&gt;&lt;h2 id="jrt" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;JR's Java Tutorials&lt;/h2&gt;&lt;p style="text-align: left; "&gt;Do you want to learn more about Java programming! Do you have an applet or application that you want to write for yourself. Then get your favorite editor ready and jump into my &lt;a href="http://home.cogeco.ca/~ve3ll/jatutor0.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;set of tutorials&lt;/a&gt; on the fundamentals of Java. They include plenty of samples and projects. And if you have questions or want to provide feedback, please &lt;a href="mailto:VE3LL@COGECO.CA?Subject=[jaintro.htm]" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;email me&lt;/a&gt;.&lt;/p&gt;&lt;p style="text-align: left; "&gt;&lt;span style="color: red; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- font-weight: bold; background-position: initial initial; color:transparent;"&gt;Note:&lt;/span&gt; For those who prefer to work &lt;em style="font-style: italic; font-weight: bold; "&gt;off-line&lt;/em&gt;, I have created a &lt;a href="http://home.cogeco.ca/~ve3ll/jatutorh.htm#fg" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;fileGrab&lt;/a&gt; utility in Java that will download all Java tutorials, source code zip packages, and required supplementary files. Follow these steps to get the tutorial material:&lt;/p&gt;&lt;ol style="list-style-type: decimal; list-style-position: initial; list-style-image: initial; font-weight: normal; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Create a new folder that will contain the fileGrab utility and the tutorial material.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Move into the folder and download the &lt;a href="http://home.cogeco.ca/~ve3ll/bin2/jp7net.zip" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;network utilities zip file&lt;/a&gt; [12 kb]&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Unzip the files named &lt;em style="font-style: italic; font-weight: bold; "&gt;fileGrab.java&lt;/em&gt; and &lt;em style="font-style: italic; font-weight: bold; "&gt;fileGrab.bat&lt;/em&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Compile the application using the command &lt;em style="font-style: italic; font-weight: bold; "&gt;javac fileGrab.java&lt;/em&gt;.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Download &lt;a href="http://home.cogeco.ca/~ve3ll/bin2/javapack.lst" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;javapack.lst&lt;/a&gt;, the current list of tutorial files to be downloaded for off-line viewing.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Run the application using the command &lt;em style="font-style: italic; font-weight: bold; "&gt;fileGrab.bat&lt;/em&gt;.&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;Use your browser to test that all the files are ready to use offline. The root file is &lt;em style="font-style: italic; font-weight: bold; "&gt;jaintro.htm&lt;/em&gt; (this page)&lt;/li&gt;&lt;/ol&gt;&lt;h2 id="tut" style="font-size: 150%; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(204, 204, 204); text-indent: 15px; clear: both; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 18px; background-position: initial initial; "&gt;Tutorials and Code Samples&lt;/h2&gt;&lt;p style="text-align: left; "&gt;The following sites provide &lt;em style="font-style: italic; font-weight: bold; "&gt;tutorial material&lt;/em&gt; for Java. Combined with good textbooks, all the required topics should be well covered. Sun also provides a &lt;a href="http://java.sun.com/docs/codeconv/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Coding Conventions&lt;/a&gt; document to help standardize your work.&lt;/p&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul class="nodec" style="text-align: left; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.dickbaldwin.com/toc.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Baldwin's Stuff&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.javabeginner.com/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Beginner Tutorials&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://math.hws.edu/javanotes/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JavaNotes&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://java.sun.com/docs/books/tutorial/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Sun.com [6.0]&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul class="toc" style="text-align: left; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; white-space: nowrap; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.macs.hw.ac.uk/guidebook/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Swing Tutorials&lt;/a&gt; - S Davidson, Heriot Watt&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://chortle.ccsu.edu/CS151/cs151java.html" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Java 5.0&lt;/a&gt; - B Kjell, Central Connecticut State&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.javacoffeebreak.com/tutorials/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;JavaCoffeeBreak Tutorials&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.particle.kth.se/~lindsey/JavaCourse/Book/courseMap.html" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Lindsey's Course with Tech&amp;amp;Physics Apps&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul class="toc" style="text-align: left; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; white-space: nowrap; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.cafeaulait.org/javatutorial.html" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Brewing Java: A Tutorial&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.freewarejava.com/tutorials/index.shtml" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;FreewareJava Tutorials&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.techonvideo.com/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Programming Videos&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.zetcode.com/tutorials/javaswingtutorial/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;zetCode Swing Tutorial&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: left; "&gt;Java technologies can be used to create applications and applets with rich client interfaces that are secure, portable high-performance and run on multiple operating systems. The &lt;em style="font-style: italic; font-weight: bold; "&gt;JavaDesktop&lt;/em&gt; community of &lt;a href="http://java.net/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;java.net&lt;/a&gt; provides the latest news and information for developers of client applications for the J2SE platform. Don't miss the news, features, forums and projects at &lt;a href="http://java.sun.com/javase/technologies/desktop/index.jsp" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;java.sun.com&lt;/a&gt;&lt;/p&gt;&lt;p style="text-align: left; "&gt;Why should you create code to do something if someone else has already written it? There are many finished Java programs and utilities that are ready-to-run. The following sites may already have the functions you want and probably many more that you didn't even think about. Spend some quality time trolling for ideas!&lt;/p&gt;&lt;table class="col" style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; border-style: initial; border-color: initial; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 204); color: rgb(0, 0, 0); border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; "&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top; "&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul class="nodec" style="text-align: left; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://www.101science.com/chemJAVA.htm" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;ChemJava&lt;/a&gt; - links to science and math stuff!&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://javaalmanac.com/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Java Almanac&lt;/a&gt; - links to examples from text&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td style="width: auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 3px; padding-bottom: 1px; padding-left: 3px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; text-align: left; vertical-align: top; "&gt;&lt;ul class="toc" style="text-align: left; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; white-space: nowrap; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://wikis.sun.com/display/code/Home" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Sun's Code Samples&lt;/a&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;a href="http://java.sun.com/applets/" style="color: rgb(0, 0, 0); text-decoration: underline; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: bold; "&gt;Sun.com&lt;/a&gt; - lots of applets to draw ideas from&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: left; "&gt;Most of these projects are packaged in JAR (Java Archived Resource) files which are similar to zipped packages in Windows. To unpackage a .jar file you use the commands:&lt;/p&gt;&lt;ul style="list-style-type: disc; list-style-position: initial; list-style-image: initial; text-align: left; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;java -jar file_name.jar&lt;/em&gt;&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 3px; padding-bottom: 0px; padding-left: 3px; "&gt;&lt;em style="font-style: italic; font-weight: bold; "&gt;jar -x file_name.jar&lt;/em&gt;. If you just want to view the contents first, use the -tf option instead of -x.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="color: rgb(17, 17, 17);   line-height: 18px; font-family:'Helvetica Neue';font-size:48px;"&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;BIBLIOGRAPHY / REFERENCE : -&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;FOR REFERENCE....PLEASE VISIT :&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;a href="http://home.cogeco.ca/~ve3ll/jaintro.htm"&gt;http://home.cogeco.ca/~ve3ll/jaintro.htm&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;P.S. : THIS CONTENT IS TAKEN FROM THE ABOVE MENTIONED SITE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-6131876678704532772?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/6131876678704532772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/java-introduction-java-authoring-info.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/6131876678704532772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/6131876678704532772'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/java-introduction-java-authoring-info.html' title='JAVA INTRODUCTION : Java Authoring Info'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-2671433202972628648</id><published>2009-05-16T12:05:00.000-07:00</published><updated>2009-05-16T12:13:02.228-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA TUTORIALS - PART 2'/><title type='text'>Learn About Java Technology</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(17, 17, 17); font-family: 'Helvetica Neue'; font-size: 12px; line-height: 18px; "&gt;&lt;h1 style="text-align: center;margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; font-weight: normal; font-size: 1.6667em; line-height: 1.5em; margin-bottom: 0.3em; color: rgb(220, 85, 25); "&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153);"&gt;NOTE : -  THIS IS NOT THE ORIGINAL CONTENT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/h1&gt;&lt;h1 style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; font-weight: normal; font-size: 1.6667em; line-height: 1.5em; margin-bottom: 0.3em; color: rgb(220, 85, 25); "&gt;&lt;br /&gt;&lt;/h1&gt;&lt;h1 style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; font-weight: normal; font-size: 1.6667em; line-height: 1.5em; margin-bottom: 0.3em; color: rgb(220, 85, 25); "&gt;Learn About Java Technology&lt;/h1&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;b&gt;To date, the Java platform has attracted more than 6.5 million software developers. It's used in every major industry segment and has a presence in a wide range of devices, computers, and networks.&lt;/b&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;Java technology's versatility, efficiency, platform portability, and security make it the ideal technology for network computing. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;Java powers more than 4.5 billion devices including:&lt;/p&gt;&lt;ul style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 1.5em; margin-bottom: 1.5em; margin-left: 1.5em; list-style-type: disc; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;800+ million PCs&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;2.1 billion mobile phones and other handheld devices (source: Ovum)&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;3.5 billion smart cards&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Set-top boxes, printers, Web cams, games, car navigation systems, lottery terminals, medical devices, parking payment stations, and more.&lt;/li&gt;&lt;/ul&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;To see places of Java in Action in your daily life, &lt;a href="http://java.com/en/java_in_action/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;explore java.com&lt;/a&gt;.&lt;/p&gt;&lt;h2 style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; font-weight: normal; font-size: 1.5em; line-height: 1.6667em; margin-bottom: 0.3333em; color: rgb(102, 102, 102); "&gt;Why Software Developers Choose Java&lt;/h2&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;Java has been tested, refined, extended, and proven by a dedicated community. And numbering more than 6.5 million developers, it's the largest and most active on the planet. With its versatilty, efficiency, and portability, Java has become invaluable to developers by enabling them to:&lt;/p&gt;&lt;ul style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 1.5em; margin-bottom: 1.5em; margin-left: 1.5em; list-style-type: disc; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Write software on one platform and run it on virtually any other platform&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Create programs to run within a Web browser and Web services&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Develop server-side applications for online forums, stores, polls, HTML forms processing, and more&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Combine applications or services using the Java language to create highly customized applications or services&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Write powerful and efficient applications for mobile phones, remote processors, low-cost consumer products, and practically any other device with a digital heartbeat&lt;/li&gt;&lt;/ul&gt;&lt;h2 style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; font-weight: normal; font-size: 1.5em; line-height: 1.6667em; margin-bottom: 0.3333em; color: rgb(102, 102, 102); "&gt;Some Ways Software Developers Learn Java&lt;/h2&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;Today, many colleges and universities offer courses in programming for the Java platform. In addition, developers can also enhance their Java programming skills by reading Sun's &lt;a href="http://java.sun.com/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;java.sun.com Web site&lt;/a&gt;, subscribing to &lt;a href="http://developers.sun.com/newsletters/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;Java technology-focused newsletters&lt;/a&gt;, using the &lt;a href="http://java.sun.com/docs/books/tutorial/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;Java Tutorial&lt;/a&gt; and the &lt;a href="http://java.sun.com/developer/onlineTraining/new2java/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;New to Java Programming Center&lt;/a&gt;, and signing up for Web, virtual, or instructor-led &lt;a href="http://www.sun.com/training/catalog/java/delivery.xml" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;courses&lt;/a&gt;.&lt;/p&gt;&lt;a name="javafx" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;&lt;/a&gt;&lt;h3 style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; font-weight: normal; font-size: 1.4167em; line-height: 1.7647em; margin-bottom: 0.3529em; color: rgb(51, 51, 51); "&gt;What Is JavaFX&lt;/h3&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;img src="http://java.com/images/javafx/javafx_logo.png" width="120" height="52" alt="JavaFX logo" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; float: left; margin-top: 1.5em; margin-right: 1.5em; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /&gt;JavaFX extends your web experience by delivering rich media and content across all the screens of your life. As users, you will be able to run JavaFX applications in a browser or drag and drop them onto the desktop. It's a seamless interface!&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;strong style="font-weight: bold; "&gt;JavaFX is powered by Java:&lt;/strong&gt; JavaFX extends the power of Java by allowing developers to use any Java library within JavaFX applications. This way developers can expand their capabilities in Java and make use of the revolutionary presentation technology that JavaFX provides to build engaging visual experiences.&lt;/p&gt;&lt;h5 class="sub" style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; color: rgb(17, 17, 17); font-size: 1em; font-weight: bold; margin-bottom: 0px !important; "&gt;Highlights of JavaFX:&lt;/h5&gt;&lt;ul style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 1.5em; margin-bottom: 1.5em; margin-left: 1.5em; list-style-type: disc; "&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Allows users to view JavaFX applications in a browser or break free of the browser by dragging and dropping the same application onto the desktop&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Enables an efficient designer-to-developer workflow with Project Nile: designers can work in their tools of choice while collaborating with Web scripters who use the NetBeans IDE with JavaFX&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Extends Java technology by enabling use of any Java library within a JavaFX application&lt;/li&gt;&lt;li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; "&gt;Allows developers to integrate vector graphics, animation, audio, and video Web assets into a rich, interactive, immersive application&lt;/li&gt;&lt;/ul&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;To learn more about JavaFX technology, visit &lt;a href="http://javafx.com/" title="JavaFX site" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;javafx.com&lt;/a&gt; or &lt;a href="http://java.sun.com/javafx/" title="java.sun.com JavaFX site" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;java.sun.com/javafx&lt;/a&gt; web sites for more information.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;a href="http://java.com/en/about/#top" title="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;Back to top&lt;/a&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: center;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;P.S. : THIS CONTENT IS TAKEN FROM THE ABOVE MENTIONED SITE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-2671433202972628648?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/2671433202972628648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/learn-about-java-technology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/2671433202972628648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/2671433202972628648'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/learn-about-java-technology.html' title='Learn About Java Technology'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-5418759612092885153</id><published>2009-05-16T11:31:00.000-07:00</published><updated>2009-05-16T12:38:05.583-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA TUTORIALS - PART 1'/><title type='text'>What is Java?</title><content type='html'>&lt;span class="Apple-style-span"   style="color: rgb(17, 17, 17);   line-height: 18px; font-family:'Helvetica Neue';font-size:12px;"&gt;&lt;p  style="text-align: center;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border- vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color:initial;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153);"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;NOTE : -  THIS IS NOT THE ORIGINAL CONTENT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;Java allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing. &lt;br /&gt;&lt;br /&gt;&gt; &lt;a href="http://java.com/en/about/" title="More information about Java" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;Find Out More About Java &lt;/a&gt;&lt;br /&gt;&gt; &lt;a href="http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&amp;amp;host=java.com:80" title="Download Java" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;Download Java&lt;/a&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; "&gt;After you've downloaded Java, visit java.com to check out &lt;a href="http://java.com/en/java_in_action/" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; color: rgb(0, 54, 154); text-decoration: none; "&gt;Java in Action&lt;/a&gt; in your daily life.&lt;/p&gt;&lt;br /&gt;&lt;hr style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(170, 170, 170); color: rgb(170, 170, 170); clear: both; float: none; width: 100%; height: 0.1em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.45em; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-position: initial initial; "&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;Java software for your computer, or the Java Runtime Environment, is also referred to as the Java Runtime, Runtime Environment, Runtime, JRE, Java Virtual Machine, Virtual Machine, Java VM, JVM, VM, or Java download. &lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;BIBLIOGRAPHY / REFERENCE : -&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;FOR REFERENCE....PLEASE VISIT :&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;a href="http://java.com/en/download/whatis_java.jsp"&gt;http://java.com/en/download/whatis_java.jsp&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="quiet"  style="text-align: center; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border- vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color:initial;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;P.S. : THIS CONTENT IS TAKEN FROM THE ABOVE MENTIONED SITE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="quiet" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(102, 102, 102); "&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-5418759612092885153?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/5418759612092885153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/what-is-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/5418759612092885153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/5418759612092885153'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/what-is-java.html' title='What is Java?'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4307410102695913200.post-6273949897696978055</id><published>2009-05-16T07:55:00.001-07:00</published><updated>2009-05-16T12:13:39.965-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EDUCATION : JAVA TUTORIALS'/><title type='text'>HOW TO BECOME A PERFECT , PROFESSIONAL AND SUCCESSFUL PROGRAMMER</title><content type='html'>&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;   Hello Learners, I am a Professional Programmer in JAVA. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;I am here to give you people some tips and advices which would help you a lot in learning this JAVA Programming Language.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;T&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;hey are As Follows : -  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-style: italic; white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;1.  Learn  JAVA Thoroughly. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;2. Get Use to all The CODES available in JAVA.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;3. Get acquainted with the theory of JAVA. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;4. Learning and Cramming is not all required to make you a perfect and professional programmer.     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;For that you need to do a lots of practice.     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;You got to create a lots of programs of your own and not just by copy-paste or cut-paste.   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-style: italic; white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;So,for becoming a successful, perfect and professional programmer,you need to do a lots of hard-work. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;Hope you get it and implement all the tips which i have mentioned above.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;    ENJOY LEARNING  !!!!!! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;    ENJOY PROGRAMMING !!!!!  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-style: italic; white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;CREATE YOUR OWN GOOD,SUCCESSFUL AND WEALTHY FUTURE BY LEARNING HOW TO CREATE PROGRAMS !!!!!!  TAKE CARE !!!!!!  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-style: italic; white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;TAKE CARE !!!!  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-style: italic; white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;BIBLIOGRAPHY / REFERENCE   :   I HAVE TAKEN THIS ADVICE FROM MY ANOTHER BLOG WHICH IS ALL ABOUT LEARNING THEORY OF C++ AND PROGRAMMING IN C++.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-style: italic; white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre-wrap; font-family:'Lucida Grande';"&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style="font-style:italic;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;PLEASE VISIT : -  &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://ooplcpp.blogspot.com/"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;LEARN C++ PROGRAMMING&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" font-style: italic; font-weight: bold; white-space: pre-wrap;font-family:'Lucida Grande';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" font-style: italic; font-weight: bold; white-space: pre-wrap;font-family:'Lucida Grande';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4307410102695913200-6273949897696978055?l=java2tcr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tcr.blogspot.com/feeds/6273949897696978055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java2tcr.blogspot.com/2009/05/advice.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/6273949897696978055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4307410102695913200/posts/default/6273949897696978055'/><link rel='alternate' type='text/html' href='http://java2tcr.blogspot.com/2009/05/advice.html' title='HOW TO BECOME A PERFECT , PROFESSIONAL AND SUCCESSFUL PROGRAMMER'/><author><name>PRATIK MEHTA</name><uri>http://www.blogger.com/profile/09302495822789712864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://3.bp.blogspot.com/_gDLdmN8-9Yw/Sg7aUKVKXoI/AAAAAAAAAAM/5AWHopp8svo/S220/om.jpg'/></author><thr:total>2</thr:total></entry></feed>
