<?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-49336672165372363</id><updated>2011-07-29T00:59:11.897-07:00</updated><title type='text'>JAVA PROGRAMMING</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-7096316377022510589</id><published>2009-08-04T00:18:00.000-07:00</published><updated>2009-08-04T01:25:06.471-07:00</updated><title type='text'>Operator</title><content type='html'>In Java, there are several types of service. There are arithmetic operators, customer service, service logic, and service conditions. Operator follows the various priorities that so compilernya akan know which service to run in the first some cases the service is shared in a statement.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Operator arithmetic&lt;/span&gt;&lt;br /&gt;The following are the basic arithmetic operators that can be used to create a&lt;br /&gt;Java programs:&lt;br /&gt;&lt;br /&gt;+  : op1 + op2 Adding op2 with Op1&lt;br /&gt;*  : op1 * op2 op1 to op2 multiplying&lt;br /&gt;/  : op1 / op2 Sharing op1 with op2&lt;br /&gt;% : op1 % op2 Calculating the rest of the division of op1 with op2&lt;br /&gt;-  : op1 - op2 reduce op2 from op1&lt;br /&gt;&lt;br /&gt;Here is an example program in the use of this operator-operator:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;public class aritmatikaDemo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;public static void main(String[] args)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//little number&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int i = 37;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int j = 42;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;double x = 27.475;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;double y = 7.22;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Variable values...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i = " + i);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j = " + j);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" x = " + x);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" y = " + y); //Answer number&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Adding...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i + j = " + (i + j));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" x + y = " + (x + y));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//reduction in the number&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Subtracting...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i - j = " + (i - j));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" x - y = " + (x - y));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//digit multiplication&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Multiplying...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i * j = " + (i * j));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" x * y = " + (x * y));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//division number&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Dividing...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i / j = " + (i / j));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" x / y = " + (x / y));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//calculate the modulus results from the division of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Computing the remainder...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i % j = " + (i % j));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" x % y = " + (x % y));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//type of merger&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Mixing tipes...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j + y = " + (j + y));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i * x = " + (i * x));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Below is the output of the program,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;Variable values...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i = 37&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j = 42&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x = 27.475&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;y = 7.22&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i + j = 79&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Adding...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x + y = 34.695&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Subtracting...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i - j = -5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x - y = 20.255&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Multiplying...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i * j = 1554&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x * y = 198.37&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Dividing...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i / j = 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x / y = 3.8054&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Computing the remainder...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i % j = 37&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x % y = 5.815&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Mixing tipes...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j + y = 49.22&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i * x = 1016.58&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Operator Increment and Decrement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From the basic arithmetic operators, also consists of the Java unary increment operator (+ +)&lt;br /&gt;and unary decrement operator (--). increment and decrement operators increase and reduce the value stored in the form of a variable number of value 1. For example, the statement,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;count = count + 1; //count value increment with a value of 1&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;with the same statement,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;count++;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OP++ :Adding value in the op 1; evaluate the value of op before diincrementasi / added&lt;br /&gt;++OP :Adding value in the op 1; evaluate the value of op before diincrementasi / added&lt;br /&gt;OP-- :Reduce the value 1 on the op; evaluate the value of op before diincrementasi / added&lt;br /&gt;--OP :Reduce the value 1 on the op; evaluate the value of op before diincrementasi / added&lt;br /&gt;&lt;br /&gt;Increment and decrement operators can be placed before or after the operand.&lt;br /&gt;&lt;br /&gt;When used before the operand, will result in a variable or diincrement didecrement with a value of 1, and then a new value is used in the statement where he added. For example,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;int i = 10,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int j = 3;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int k = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k = ++j + i; //yield k = 4+10 = 14&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the increment and decrement operators are placed after the operand, the value of the variable old will be used first operated prior to the statement which he added. For example,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;int i = 10,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int j = 3;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;int k = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k = j++ + i; //yield k = 3+10 = 13&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Relations Operator&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Relations operator to compare two values and determine the relationship between values it. Of the output is a boolean value that is true or false.&lt;br /&gt;&lt;br /&gt;" &gt;      Op1&gt; op2 op1 is greater than op2"&lt;br /&gt;" &gt; =  Op1&gt; = op2 op1 is greater than or equal to op2"&lt;br /&gt;" &lt;      Op1 &lt;= Op1 &lt;= op2 op1 is less than or equal to op2 "&lt;br /&gt;" ==   Op1 == op2 op1 together with op2  "&lt;br /&gt;" ! =  Op1! = Op2 op1 is not equal to op2 "  &lt;br /&gt;&lt;br /&gt;Here is an example program that uses the service relations,   &lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;br /&gt;public class RelasiDemo { public static void main(String[] args)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; { //some value int i = 37; int j = 42; int k = 42; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Variable values...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i = " + i); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j = " + j);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k = " + k); //greater than System.out.println("Greater than..."); System.out.println(" i &gt; j = " + (i &gt; j)); //false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j &gt; i = " + (j &gt; i)); //true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k &gt; j = " + (k &gt; j)); //false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//greater or equal to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Greater or equal to...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i &gt;= j = " + (i &gt;= j)); //false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j &gt;= i = " + (j &gt;= i)); //true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k &gt;= j = " + (k &gt;= j)); //true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//less than&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Less than...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i &lt; j =" "&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j &lt; i =" "&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k &lt; j =" "&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//Less than or equal to&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Less than or equal to...");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i &lt;= j = " + (i &lt;= j)); //true &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" j &lt;= i = " + (j &lt;= i)); //false &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k &lt;= j = " + (k &lt;= j)); //true //with the same &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("with the same..."); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i == j = " + (i == j)); //false &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k == j = " + (k == j)); //true //not the same as &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Not the same as..."); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" i != j = " + (i != j)); //true &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;System.out.println(" k != j = " + (k != j)); //false &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is the result of the output from this program:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;Variable values...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i = 37 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j = 42&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k = 42&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Greater than...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i &gt; j = false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j &gt; i = true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k &gt; j = false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Greater or equal to...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i &gt;= j = false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j &gt;= i = true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k &gt;= j = true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Less than...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i &lt; j =" true"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j &lt; i =" false"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k &lt; j =" false"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Less than or equal to...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i &lt;= j = true &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;j &lt;= i = false &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k &lt;= j = true with the same...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i == j = false&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k == j = true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Not the same as...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i != j = true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;k != j = false&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-7096316377022510589?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/7096316377022510589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/08/operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/7096316377022510589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/7096316377022510589'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/08/operator.html' title='Operator'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-8842556292065885002</id><published>2009-08-02T20:05:00.000-07:00</published><updated>2009-08-02T21:41:25.528-07:00</updated><title type='text'>Variable</title><content type='html'>Variables are data items that are used to store the object statement. Variable has a data type and name. Type indicates the data type of value that can be formed by the variable itself. Variable name must follow the rules of the identifier.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Variable declaration and initialisation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For the variable declaration is as follows,&lt;br /&gt;&lt;data type=""&gt; &lt;name&gt; [= initial value];&lt;br /&gt;Note: The value is between &lt;&gt; is a required value, while values in&lt;br /&gt;marked [] are optional.&lt;br /&gt;Here is an example program and declare that the several&lt;br /&gt;variables,&lt;br /&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="font-family:courier new;"&gt;public class VariableSamples &lt;/span&gt; &lt;span style="font-family:courier new;"&gt;  {&lt;/span&gt; &lt;span style="font-family:courier new;"&gt; public static void main (String [] args) { &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / data type declarations with the variable name &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / Result and data type boolean &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; boolean result; &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / data type declarations with the variable name &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / Option data type and char &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; char option; &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; option = 'C'; / / mark 'C' as an option &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / data type declarations with the variable name &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / grade, double data type and has been in the initialisation &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; / / to 0.0 &lt;/span&gt; &lt;span style="font-family:courier new;"&gt; double grade = 0.0; &lt;/span&gt; &lt;span style="font-family:courier new;"&gt;  }&lt;/span&gt; &lt;span style="font-family:courier new;"&gt; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Displaying Variable Data&lt;/span&gt;&lt;br /&gt;To remove the value of a variable that you want, we can use the command as follows,&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;System.out.println()&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;System.out.print()&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Here is an example program,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;public class OutputVariable&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;{&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;public static void main( String[] args ){&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;int value = 10;&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;char x;&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;x = ‘A’;&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;System.out.println( value );&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;System.out.println( “The value of x=” + x );&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;}&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The program will remove the following text on the screen,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;10&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;The value of x=A&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;System.out.println() vs. System.out.print() &lt;/span&gt;&lt;br /&gt;What distinguishes between the System.out.println () and System.out.print ()?&lt;br /&gt;The first to add a new line at the end of the data for the excluded, while&lt;br /&gt;not next.&lt;br /&gt;Note the statement,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;System.out.print("Hello ");&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;System.out.print("world!");&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;The statement will produce the following output on the screen,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;Hello world!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now see the following statement,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;System.out.println("Hello ");&lt;/span&gt;  &lt;span style="font-family:courier new;"&gt;System.out.printin("world!");&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;The statement will produce the following output on the screen,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;Hello&lt;br /&gt;world!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Reference Variables and Primitive Variables&lt;/span&gt;&lt;br /&gt;Now we will distinguish two types of variables that are owned by the Java program. There reference variables and primitive variables.&lt;br /&gt;Primitive variables are variables with primitive data types. They store data in the actual memory location where the variable is located.&lt;br /&gt;Reference variables are variables that store addresses in a memory location. The point to a memory location where data is actually located. When you declare&lt;br /&gt;variables in a particular class, you actually declare a variable in the reference classnya in the form of the object is.&lt;br /&gt;For example, if we have two variables with data types int and String.&lt;br /&gt;&lt;span style="font-size:85%;"&gt; &lt;span style="font-family:courier new;"&gt;int num = 10;&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;String name = "Hello"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;eg the illustration shown below is the memory of the computer&lt;br /&gt;You, where you have the address of each memory cell, the variable name and data&lt;br /&gt;form as follows.&lt;br /&gt;&lt;br /&gt;&lt;/name&gt;&lt;/data&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_VYWsCRPhmZA/SnZqPn8JsTI/AAAAAAAAAMc/4MrUFuQ3aY0/s1600-h/java31.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 255px;" src="http://4.bp.blogspot.com/_VYWsCRPhmZA/SnZqPn8JsTI/AAAAAAAAAMc/4MrUFuQ3aY0/s320/java31.PNG" alt="" id="BLOGGER_PHOTO_ID_5365592822710382898" border="0" /&gt;&lt;/a&gt;As you can see, the primitive variable for num, data in the location where the variables are. To reference a variable name, variable only refers to the address where the data is really there.&lt;br /&gt;&lt;data type=""&gt;&lt;name&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/name&gt;&lt;/data&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-8842556292065885002?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/8842556292065885002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/08/variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/8842556292065885002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/8842556292065885002'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/08/variable.html' title='Variable'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_VYWsCRPhmZA/SnZqPn8JsTI/AAAAAAAAAMc/4MrUFuQ3aY0/s72-c/java31.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-8936995852996736527</id><published>2009-06-22T20:42:00.000-07:00</published><updated>2009-06-22T20:48:36.869-07:00</updated><title type='text'>Java Literals</title><content type='html'>Literals are signs that the changes do not occur or constant. Different literals in Java is: Integer Literals, Floating-Point Literals, Boolean Literals, Character Literals and String Literals.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Integer Literals &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Integer literals be distinguished in several different formats: decimal (base 10), hexadecimal (base 16), and octal (base 8). In the use of data type integer on the program, we must follow the rules of some special notation.&lt;br /&gt;For decimal numbers, we do not need a special notation. We only write the number as a decimal is. for hexadecimal digits, it must be marked by "0x" or "0x". for octal, marked by "0". For example, a number representing 12. Writing in the form of desimalnya is 12, Meanwhile, in hexadecimal, it becomes 0xC, and in octal, with the same value 014.&lt;br /&gt;Default data type for integer literals is int. Int is a signed 32-bit value. In the cases you can expect to force integer literal to be long data types by adding the characters "l" or "L". data types are marked by long displaying data in 64-bit. We will discuss the types of data on&lt;br /&gt;next opportunity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Floating-Point Literals  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Floating point literals represent decimal form with a separate section. As  example is 3.1415. Floating point literals can be expressed in standard notation or  scientific. For example, 583.45 stated in the standard notation, while 5.8345e2  expressed in scientific notation. &lt;br /&gt;Default Floating point literals have the type of data that is expressed in the double 64-bit. To use the accuracy of smaller (32-bit) float, only to add  character "f" or "F". &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Boolean Literals  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Boolean literals have only two values, true or false. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Character Literals  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Character Literals represented by a single Unicode character. Unicode characters are 16-bit character set that replaces the 8-bit ASCII character set. Unicode allows use of symbols and special characters from other languages. &lt;br /&gt;To use character literals, the characters in the single pute marks ( '')  (single quote delimiters). For example a letter, represented as' a '. &lt;br /&gt;To use special characters such as a new line character, backslash is used followed by the character code. For example, '\ n' character to a new line or replace the  line, '\ r' to represent the value back (carriage return), '\ b' Backspace to. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;String Literals  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;String literals represent multiple characters and expressed in double pute marks ( "") (  double quotes). For example the string literal is, "Hello World".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-8936995852996736527?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/8936995852996736527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/java-literals.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/8936995852996736527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/8936995852996736527'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/java-literals.html' title='Java Literals'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-4452542896322752814</id><published>2009-06-15T20:24:00.000-07:00</published><updated>2009-06-22T20:42:22.818-07:00</updated><title type='text'>Analyzing First Java program</title><content type='html'>Now, we will try to analyze the first Java program:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    public class Hello  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     { &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        / **  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       * My first java program  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;       * /  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;      public static void main (String [] args) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;      / / display the string "Hello world" on the screen  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;      System.out.println ( "Hello world!");  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;      } &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     } &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The first line of code:&lt;br /&gt;&lt;br /&gt;                                  &lt;span style=";font-family:courier new;font-size:85%;"  &gt;public class Hello&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;indicates the name of the Hello class. In Java, all code should be placed in declaration in the class. we do so by using the keyword class. As In addition, use the class access specifier public, which indicates that the class we have free access to the other class from another package that also (packagemerupakan collection of class-class). We will discuss more in the package and access specifier in the next session.&lt;br /&gt;The next line which is made up of brackets brace (denotes the beginning of blocks. In the code this, we put the brace brackets on the next line after the class declaration, however, we can also put this brace brackets after the first line of code that we write. Thus, we can write our code as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;public class Hello&lt;br /&gt;{&lt;br /&gt;or&lt;br /&gt;public class Hello {&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Next three lines indicate the existence of a Java comment. Comment is used to document each section of code that is written. Comments not is part of the program itself, but used for the purpose of documentation. Comments can be added itself to the code you write as a guide can help the learning process is good programming.&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;/**&lt;br /&gt;* My first java program&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Comments expressed with a "/ *" and "*/". Anything that is a sign of is ignored by the Java compiler, and they only considered as a comment.&lt;br /&gt;Next line,&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;public static void main (String [] args) {&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;or can be also written as follows,&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;public static void main (String [] args)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;the name of a method in the Hello class that acts as a method main. Main method is the starting point of a Java program. All programs except applet written in Java language starting with the main method. Be sure to follow the principle of the correct sign.&lt;br /&gt;The line is also a further comment,&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt; / / Displays the string "Hello world" on the screen&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now we learn how to make 2 comments. The first way is to put in the comment / * and * /, and the other way is to write sign / / at the beginning of the comment&lt;br /&gt;Next line,&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;System.out.println("Hello world!");&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;displays the text "Hello World!" on the screen. Command System.out.println (), display in side the text by double-pute marks ( "") on the screen.   Last two lines that consist of two brace brackets used to cover method  primary and each class respectively.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;" id="result_box" dir="ltr"&gt;&lt;span style="font-weight: bold;"&gt;Comments on Java &lt;/span&gt;&lt;br /&gt;Comments are notes written in code with the goal as documentation. The text is not part of the program and does not affect the way program.&lt;br /&gt;Java supports three types of comments: C + + style single line comments, C style some line, and special javadoc comment.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Comment writing C + + Style &lt;/span&gt;&lt;br /&gt;C + + comment style begins with the / /. All text after / / is considered a comment. As an example,&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;    // This is a C++ style or single line comments&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Writing Style Comments C &lt;/span&gt;&lt;br /&gt;Comments or C-style comments also referred to some lines begin with / * and ends with * /. All text that is between two marks are considered as comment. No comments such as C + + style, this comment can reach a few lines. As example,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;    /* this is an example of a&lt;br /&gt;       C style or multiline comments */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Special javadoc comment &lt;/span&gt;&lt;br /&gt;Comments javadoc used for special men-generate HTML documentation for the your Java program. You can create a javadoc comment with the start line with / ** and mengakhirinya with * /. Comments such as C_style, can also reach a few lines. Comments can also consist of tags for add more information on your comment. For example,&lt;br /&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;&lt;br /&gt;   /**&lt;br /&gt;       This is an example of special java doc comments used for \n&lt;br /&gt;       generating an html documentation. It uses tags like:&lt;br /&gt;       @author Florence Balagtas&lt;br /&gt;       @version 1.2&lt;br /&gt;   */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The statement in the Java and Blocks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The statement is one or more lines of code that end with a semicolon. As for example is a single statement&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;    System.out.println(“Hello world”);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;" id="result_box" dir="ltr"&gt;Block is one or more statements between the brackets and the open brace brace brackets, namely a set of statements closed as one unit unity. Block statements can be collected but will not exactly have any relevance function. Some of the permitted amount of empty space there is inside, as an example of a block is:&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;    public static void main( String[] args ){&lt;br /&gt;   System.out.println("Hello");&lt;br /&gt;   System.out.println("world");&lt;br /&gt;   }&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Java Identifier &lt;/span&gt;&lt;br /&gt;Java Identifier is a sign that represents the names of variables, method, class, etc.. Example of Identifier is: Hello, play, System, out. Pendeklarasian Java is case-sensitive. This means that Identifier: Hello is not the same as the hello. Identifier must begin with a letter, underscore "_", or dollar sign "$". Letters can be uppercase or lowercase. Characters&lt;br /&gt;can further use the number 0 smpai 9. Identifier can not use the keyword in Java, such as class, public, void, etc.. Next we will discuss more about the keyword in Java.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Keyword in Java &lt;/span&gt;&lt;br /&gt;Keyword is the identifier that has to be defined previously by Java for a particular purpose. You can not use keywords as variable names, class, your method, etc.. The following is a list of keywords in Java (Java Keywords).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SkBOjJOSXeI/AAAAAAAAAME/iSD32w_bs60/s1600-h/java30.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 179px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SkBOjJOSXeI/AAAAAAAAAME/iSD32w_bs60/s400/java30.PNG" alt="" id="BLOGGER_PHOTO_ID_5350362722994380258" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;We will discuss all about the meaning of each keyword and how they are used in the process of writing Java programs.&lt;br /&gt;Note: true, false, null, and not including the keyword akan but they include special words, so you can not use them as variable names in your program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-4452542896322752814?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/4452542896322752814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/analyzing-first-java-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/4452542896322752814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/4452542896322752814'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/analyzing-first-java-program.html' title='Analyzing First Java program'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_VYWsCRPhmZA/SkBOjJOSXeI/AAAAAAAAAME/iSD32w_bs60/s72-c/java30.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-1283930732033858198</id><published>2009-06-15T00:50:00.000-07:00</published><updated>2009-06-19T02:29:49.818-07:00</updated><title type='text'>Using NetBeans</title><content type='html'>Now we try to do our program with a more complicated way, let we see h&lt;br /&gt;ow all the processes that have been described in the section previously using an application. In the lesson, we will be using NetBeans, which is the Integrated Development Environment or IDE. IDE is a scope programming that is integrated into a software application that provides a GUI builder, a text or code editor, a compiler or interpreter and a debugger.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Step 1: NetBeans &lt;/span&gt;  There are two ways to run NetBeans. First write the command to use terminal, or simply by clicking on the shortcut button that can be found in desktop.To run NetBeans using the command-line. Open a terminal (see steps on how to run the terminal didiskusi before), and type:&lt;br /&gt;netbeans.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjX-mx05LOI/AAAAAAAAAKk/yoHny6HwK5k/s1600-h/java19.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 278px;" src="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjX-mx05LOI/AAAAAAAAAKk/yoHny6HwK5k/s400/java19.PNG" alt="" id="BLOGGER_PHOTO_ID_5347460074736004322" border="0" /&gt;&lt;/a&gt;Second way to run NetBeans, is to click the shortcut icon there on your desktop.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjX-mx05LOI/AAAAAAAAAKk/yoHny6HwK5k/s1600-h/java19.PNG"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjX_L_LVaVI/AAAAAAAAAKs/MMgKk5f_Cks/s1600-h/java20.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjX_L_LVaVI/AAAAAAAAAKs/MMgKk5f_Cks/s400/java20.PNG" alt="" id="BLOGGER_PHOTO_ID_5347460713974950226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Once you open the NetBeans IDE, you'll see a graphical user interface (GUI) as shown below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjYC8gRbOfI/AAAAAAAAAK0/wCw3XJNX66c/s1600-h/java21.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjYC8gRbOfI/AAAAAAAAAK0/wCw3XJNX66c/s400/java21.PNG" alt="" id="BLOGGER_PHOTO_ID_5347464846027471346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Step 2: Create a Project &lt;/span&gt;&lt;br /&gt;First, let's create a project. Click on File-&gt; New Project. After do so, a dialog box will display the new project. Then click on Java Application and click NEXT.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYFzqxWtkI/AAAAAAAAAK8/torpLG3TCTI/s1600-h/java22.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 274px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYFzqxWtkI/AAAAAAAAAK8/torpLG3TCTI/s400/java22.PNG" alt="" id="BLOGGER_PHOTO_ID_5347467992761808450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, a new application dialog will be displayed.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYICcZDC9I/AAAAAAAAALE/Wu5WWoRuvCk/s1600-h/java23.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 274px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYICcZDC9I/AAAAAAAAALE/Wu5WWoRuvCk/s400/java23.PNG" alt="" id="BLOGGER_PHOTO_ID_5347470445623053266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Try to change the location of the application, by clicking on the BROWSE button. Then the dialog will show the location of project. Double click on your home folder.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjYLxWLBu4I/AAAAAAAAALU/ACUhs2h2cdA/s1600-h/java24.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 278px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjYLxWLBu4I/AAAAAAAAALU/ACUhs2h2cdA/s400/java24.PNG" alt="" id="BLOGGER_PHOTO_ID_5347474549942369154" border="0" /&gt;&lt;/a&gt;Then the contents of the root folder will be displayed. Then double click on the folder MYJAVAPROGRAMS and click OPEN.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYFzqxWtkI/AAAAAAAAAK8/torpLG3TCTI/s1600-h/java22.PNG"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjYNTr77bnI/AAAAAAAAALc/Lg3XnQD9sQw/s1600-h/java25.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 278px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjYNTr77bnI/AAAAAAAAALc/Lg3XnQD9sQw/s400/java25.PNG" alt="" id="BLOGGER_PHOTO_ID_5347476239411801714" border="0" /&gt;&lt;/a&gt;See Project Location and Project Folder has been changed to / home / florence / MYJAVAPROGRAMS. The latter, on the Create Main Class textfield, write Hello as the main class name, and then click Finish.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYN6MSIaLI/AAAAAAAAALk/2CmDLO22dsM/s1600-h/java26.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 274px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjYN6MSIaLI/AAAAAAAAALk/2CmDLO22dsM/s400/java26.PNG" alt="" id="BLOGGER_PHOTO_ID_5347476900929890482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3: Write in a Your program  &lt;/span&gt;&lt;br /&gt;Before you write a program, the first will be described on the main window  after creating project.  As shown below, automatically create NetBeans code base for  your Java program. You can add statements in your code  that has been generate. On the left side of the window, you can view a list of folders and filefile  NetBeans generated after creating a project. All this you can&lt;br /&gt;MYJAVAPROGRAMS find in your folder, where you specify the location of project it.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjYOxYixPjI/AAAAAAAAALs/Ux_ne0IsDko/s1600-h/java27.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjYOxYixPjI/AAAAAAAAALs/Ux_ne0IsDko/s400/java27.PNG" alt="" id="BLOGGER_PHOTO_ID_5347477849113706034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, try to modify the code generated by NetBeans. At this time ignore other parts of the program, details of the code will be described in the next section. Enter code:&lt;br /&gt;&lt;br /&gt;        &lt;span style="font-size:85%;"&gt;System.out.println ( "Hello world!"); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After the statement, / / TODO code application logic here.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Step 4: Compile your program &lt;/span&gt;&lt;br /&gt;Now, to compile your program, click on the Build-&gt; Buid Main Project. Or, you can also use the shortcut button to compile your code.&lt;br /&gt;If there is no error in the program, you can see a build successful message in the resulting window.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjYTg8Zz3NI/AAAAAAAAAL0/Qs5UP-GDPdU/s1600-h/java28.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjYTg8Zz3NI/AAAAAAAAAL0/Qs5UP-GDPdU/s400/java28.PNG" alt="" id="BLOGGER_PHOTO_ID_5347483064240168146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Step 5: Running Your Program  &lt;/span&gt;&lt;br /&gt;To run your program, click on Run-&gt; Run Main Project. Or you may also  can use the shortcut to run your program.&lt;br /&gt;Results from your program displayed in the window.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjYUpdrcykI/AAAAAAAAAL8/acajRYX6Bxg/s1600-h/java29.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjYUpdrcykI/AAAAAAAAAL8/acajRYX6Bxg/s400/java29.PNG" alt="" id="BLOGGER_PHOTO_ID_5347484310123104834" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-1283930732033858198?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/1283930732033858198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/using-netbeans.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/1283930732033858198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/1283930732033858198'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/using-netbeans.html' title='Using NetBeans'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_VYWsCRPhmZA/SjX-mx05LOI/AAAAAAAAAKk/yoHny6HwK5k/s72-c/java19.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-7438754938129019943</id><published>2009-06-15T00:14:00.000-07:00</published><updated>2009-06-15T00:49:26.151-07:00</updated><title type='text'>Errors</title><content type='html'>What has been indicated so far is a Java program where we did not find  various problems in the process of compiling and running it at the time.  However, this does not always happen. As we discussed in the  The first part of this exercise, we will also usually find the problems&lt;br /&gt;during the process.&lt;br /&gt;As discussed previously, there are 2 kinds of error. First is compile-time error, or also called as a syntax error. Second is the runtime  errors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Syntax Errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Syntax errors usually occur because of errors. You may lack a command in Java or forget to write the dot-coma at the end of the  statement. Java attempts to isolate the error shows how&lt;br /&gt;lines of code and the first one refers to the characters in the bar.&lt;br /&gt;However, error will not necessarily be at the designated point.  Other common error is in the capitalization, spelling, the use of characters  special that is not correct, and omission of the punctuation  actually.&lt;br /&gt;Let us take an example, the program Hello.java, where we deliberately the point-comma at the end of the statement and also try to type in  spelling is wrong on an order.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjX4_R6ufuI/AAAAAAAAAKM/8v3sIe3-i9s/s1600-h/java17.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 293px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjX4_R6ufuI/AAAAAAAAAKM/8v3sIe3-i9s/s400/java17.PNG" alt="" id="BLOGGER_PHOTO_ID_5347453898597498594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;See error message that is displayed after the Peng-compile-run a program.  The first error message that tells you there is a program in error in  line 6. This is the word refer to the after statict, which should be spelled as  static.&lt;br /&gt;The second error message that tells the program to lose titikkoma  after your statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjX5RGoToGI/AAAAAAAAAKU/KPfBY56hXbo/s1600-h/java18.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjX5RGoToGI/AAAAAAAAAKU/KPfBY56hXbo/s400/java18.PNG" alt="" id="BLOGGER_PHOTO_ID_5347454204805095522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;If you find an error message, try to edit a mistake The first error in the list one by one, and try to mengkompilasinya you are welcome. By doing so then, can reduce the total error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Run-time Errors &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Run-time error is an error which will not be displayed until you run your program. Even programs that compile successfully may display the wrong answers if the programmer has not thought through the logical structure and from the program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-7438754938129019943?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/7438754938129019943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/errors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/7438754938129019943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/7438754938129019943'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/errors.html' title='Errors'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_VYWsCRPhmZA/SjX4_R6ufuI/AAAAAAAAAKM/8v3sIe3-i9s/s72-c/java17.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-3496988772924211907</id><published>2009-06-13T01:40:00.000-07:00</published><updated>2009-06-13T02:21:24.604-07:00</updated><title type='text'>You recognize the scope Programming</title><content type='html'>IDE is a programming equipment in the integrated into the application software that supports the development of GUI, text or writing code, the compiler and debugger. This tutorial uses Ubuntu Dapper as the operating system. Before use this tutorial, make sure that have installed Java and NetBeans in system you use. For instructions on how to install Java and NetBeans, can be seen in Appendix A. For versions of Windows XP in this section, can be seen in Appendix B.&lt;br /&gt;Before discussing more detailed, at first we will see the first Java program that you will write.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;First Java Program&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public class Hello&lt;br /&gt;{&lt;br /&gt;/**&lt;br /&gt;* My first java program&lt;br /&gt;*/&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;//Display the words "Hello world"&lt;br /&gt;System.out.println("Hello world!");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Before explaining what the meaning of the program, try to write a program in a file and then run it.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;" id="result_box" dir="ltr"&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Using the Text Editor and Console &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this example, we will use a text editor to edit Java programs. You will also open a terminal window to compile and execute your Java program.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1: Starting Text Editor  &lt;/span&gt; To start the text editor in Linux, click on Applications-&gt; Accessories-&gt; Text Editor.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNncQsi0pI/AAAAAAAAAIk/ZDZnrLh11xc/s1600-h/java4.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 310px; height: 320px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNncQsi0pI/AAAAAAAAAIk/ZDZnrLh11xc/s320/java4.PNG" alt="" id="BLOGGER_PHOTO_ID_5346730917834707602" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2: Open the Terminal &lt;/span&gt;  To open a terminal in Linux, click on Applications-&gt; Accessories-&gt; Terminal.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNoPrAV97I/AAAAAAAAAIs/JiGMESmNf5Q/s1600-h/java5.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 271px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNoPrAV97I/AAAAAAAAAIs/JiGMESmNf5Q/s400/java5.PNG" alt="" id="BLOGGER_PHOTO_ID_5346731801070401458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3: Write a Java program listing in your text editor.&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNoveaUpNI/AAAAAAAAAI0/OSgMno1UrNk/s1600-h/java6.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 293px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNoveaUpNI/AAAAAAAAAI0/OSgMno1UrNk/s400/java6.PNG" alt="" id="BLOGGER_PHOTO_ID_5346732347445519570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 4: Keep your Java program &lt;/span&gt;  This program will be stored in a file called''Hello.java'', and stored in a folder named MYJAVAPROGRAMS. To open the Save dialog box, click on the File menu in the menubar and&lt;br /&gt;then click save.  After installation, the dialog box will appear like the picture below it.&lt;br /&gt;Picture&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNpebVeKuI/AAAAAAAAAI8/kmpSvaOV8vE/s1600-h/java7.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNpebVeKuI/AAAAAAAAAI8/kmpSvaOV8vE/s400/java7.PNG" alt="" id="BLOGGER_PHOTO_ID_5346733154073717474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Click on the browse button, then click Create Folder.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNqLgW6x9I/AAAAAAAAAJE/3DWkqc1X5tA/s1600-h/java8.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 322px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNqLgW6x9I/AAAAAAAAAJE/3DWkqc1X5tA/s400/java8.PNG" alt="" id="BLOGGER_PHOTO_ID_5346733928516077522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNq6w76mSI/AAAAAAAAAJM/qoGgvidFdxM/s1600-h/java9.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNq6w76mSI/AAAAAAAAAJM/qoGgvidFdxM/s400/java9.PNG" alt="" id="BLOGGER_PHOTO_ID_5346734740420073762" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Name the new folder, MYJAVAPROGRAMS. Now, click on the folder MYJAVAPROGRAMS to know the contents of the folder that is inside. After you click on the folder, you'll see a picture like that shown below. At this time folder should be empty until a new folder terbuatnya and we will save everything inside the folder.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjNrnLm-XmI/AAAAAAAAAJU/QhGs7irY1AA/s1600-h/java10.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_VYWsCRPhmZA/SjNrnLm-XmI/AAAAAAAAAJU/QhGs7irY1AA/s400/java10.PNG" alt="" id="BLOGGER_PHOTO_ID_5346735503494241890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, in the textbox Selection, type the file name of your program, that is Hello.java'''', then click on the SAVE button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNsK5DYqyI/AAAAAAAAAJc/sdXJWlqoFgg/s1600-h/java11.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNsK5DYqyI/AAAAAAAAAJc/sdXJWlqoFgg/s400/java11.PNG" alt="" id="BLOGGER_PHOTO_ID_5346736116988422946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now you've saved your file, remember how the name of the frame can changed from''Untitled Document 1 (modified) - gedit''to "Hello.java (~ / MYJAVAPROGRAMS) - gedit. "If you want to make changes to your file, You only need to edit, and save them again by clicking the on File-&gt; Save.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNsoGkRURI/AAAAAAAAAJk/AKLErs57W1M/s1600-h/java12.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 293px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNsoGkRURI/AAAAAAAAAJk/AKLErs57W1M/s400/java12.PNG" alt="" id="BLOGGER_PHOTO_ID_5346736618832220434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 5: Compile your program &lt;/span&gt;  The following is a program you compile. Go to the Terminal Window that we have been open before. When you open a terminal window, the terminal window that displays referred to as your home folder. To view the contents of the folder, type ls and then press ENTER. What you will find is a list of files and folders in it.&lt;br /&gt;You can see is the folder with the name "MYJAVAPROGRAMS" we have created earlier, and is a place where we save the program Hello.java us. Then go to the directory. To enter into a directory, type the command: cd [directory name]. Cd''command''is used to change the directory. In this case, the name of the directory we MYJAVAPROGRAM is, then you must type: cd MYJAVAPROGRAMS.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNtatb6_RI/AAAAAAAAAJs/BjL9WtQ77nI/s1600-h/java13.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 271px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNtatb6_RI/AAAAAAAAAJs/BjL9WtQ77nI/s400/java13.PNG" alt="" id="BLOGGER_PHOTO_ID_5346737488259644690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Once inside the folder that contains your Java program, it is time to begin to compile the Java program. As a note, that the file you meaning there must be inside the folder you select. Check with the ls''command''to see that you have in the file folder.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNuICHnTSI/AAAAAAAAAJ0/JJug3bZ0kNA/s1600-h/java14.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNuICHnTSI/AAAAAAAAAJ0/JJug3bZ0kNA/s400/java14.PNG" alt="" id="BLOGGER_PHOTO_ID_5346738266905726242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;To compile the Java program, use the command: javac [filename]. Deep this case, you mengetikan command: javac Hello.Java.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNunkzW0II/AAAAAAAAAJ8/vq4kOxVcm0c/s1600-h/java15.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNunkzW0II/AAAAAAAAAJ8/vq4kOxVcm0c/s400/java15.PNG" alt="" id="BLOGGER_PHOTO_ID_5346738808791945346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;During Compilations, javac add the file to disk in the so-called [filename]. class, or in this case, Hello.class, which is the actual code.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 6: Menjalakan Program &lt;/span&gt;  During the Compilations process, javac add new files into the disk which is called [filename]. class, in this case, Hello.class, which is the actual time code This, with the estimates do not have problems with the compile time process (we will investigate and discuss the problems found during the compile process, the the next section), is a ready to run your program.&lt;br /&gt;To run your Java program, by typing the command: java [filename without the extension], then in this case, you type the command: java Hello. Now you can see on the screen that you have to run a Java program You first, which displays the message,''Hello world!''.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNvZKisMsI/AAAAAAAAAKE/9ItI2c7KrNU/s1600-h/java16.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNvZKisMsI/AAAAAAAAAKE/9ItI2c7KrNU/s400/java16.PNG" alt="" id="BLOGGER_PHOTO_ID_5346739660736180930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Also Read:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-3496988772924211907?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/3496988772924211907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/you-recognize-scope-programming.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/3496988772924211907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/3496988772924211907'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/you-recognize-scope-programming.html' title='You recognize the scope Programming'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_VYWsCRPhmZA/SjNncQsi0pI/AAAAAAAAAIk/ZDZnrLh11xc/s72-c/java4.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-449967153578498941</id><published>2009-06-12T01:05:00.000-07:00</published><updated>2009-06-13T01:16:08.880-07:00</updated><title type='text'>Some Features of JAVA</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;Java Virtual Machine (JVM)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; JVM is an imaginary machine (virtual) working with applications like on a real machine. JVM specification provides hardware and platform   the compilation of Java code occurs. These specifications make the application&lt;br /&gt;Java-based platform to be free from any of the compilation process&lt;br /&gt;completed by JVM.&lt;br /&gt;Java application program is created with a text file berekstensi. Java. This program  produce a compiled bytecode file berekstensi. class or more.&lt;br /&gt;Bytecode is a set of instructions similar machine code instructions. The difference is the engine code must be run on the computer system where the compilation   intended, while running the java bytecode interpreter is available at  all-platform computer systems and operating systems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Garbage Collection  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pemrogaman many other languages that allow a programmer   allocate memory on the run. However, after the allocation   memories, there must be a way to put back the memory block&lt;br /&gt;is that other programs can use it. In C, C + + language and&lt;br /&gt;other, is a programmer who is absolutely responsible akan this. This   where the programmer can make is to restore the block negligent   memory so that the situation is known as memory leaks.&lt;br /&gt;Java program to do the garbage collection means that the program does not need to   delete own objects that are not used anymore. This facility reduces the   the burden of managing memory by a programmer and reduce or eliminate  The biggest source of error in the language that allows the allocation dynamic.&lt;span class="langselect" id="sl_select"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Code Security  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Security Code terimplementasi through the use of Java in the Java Runtime  Environment (JRE). Using the Java security model to protect the layer 3  system from untrusted Java Code.&lt;br /&gt;&lt;ol&gt;&lt;li&gt; First, the class-loader to handle loading class to Java runtime interpreter. This process provides security with separate class -  class that derives from the local disk with the classes taken from  network. This limits the application because the Trojan classes derived  from the local disk are loaded first.  &lt;/li&gt;&lt;li&gt;Second, the bytecode verifier before the bytecode is executed and  bytecode guarantee to meet the basic rules of the Java language.  &lt;/li&gt;&lt;li&gt;Third, the security management application dealing with the security level can control whether the program has access to resources such as  the file system, port network, the external and windowing system.  After all it is finished running, the program code in  execution.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Java also provides a variety of other security techniques:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Language designed to make the code execution destroyer. Negationpointer is a big security step. Java does not recognize the operation  pointer. Powerful in the hands of the programmer, The operation is a pointer  extraordinary for the optimization program and the creation of efficient and awesome. However, this mode can be a disaster in the face evil programmer. Pointer is an exceptional tool for initialization not authorized. With negative operating pointer, the Java language can be more secure. &lt;/li&gt;&lt;li&gt;Java has some safeguards against the applet. To prevent act with the program storage media, the applet does not allowed to open, read or write to the file markets. Because Java applets can open a browser window new, the window has the Java logo and text to identify window is opened. This prevents the pop-up window as deceptive request a username and password information.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Fase  JAVA Programming&lt;/span&gt;&lt;br /&gt;Gambar dibawah ini menjelaskan aliran proses kompilasi dan eksekusi sebuah&lt;br /&gt;program Java :&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNfGrCPqNI/AAAAAAAAAIU/THFOCI-o-ik/s1600-h/java2.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 96px;" src="http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNfGrCPqNI/AAAAAAAAAIU/THFOCI-o-ik/s320/java2.PNG" alt="" id="BLOGGER_PHOTO_ID_5346721750854904018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The first step in creating a Java-based program is write code in a text editor program. Sample text editor that can be used such as: notepad, vi, emacs and others. Program code that is made&lt;br /&gt;then stored in a file berekstensi. java.&lt;br /&gt;After creating and saving the program code, compiling the file that contains the code program using the Java Compiler. Results from a compilation bytecode file with the extension. class.&lt;br /&gt;The file that contains the bytecode is then converted by akan Java Interpreter into machine language and in accordance with the type of platform used.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNffRrn0lI/AAAAAAAAAIc/P_IuVC0h3LU/s1600-h/java3.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 85px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjNffRrn0lI/AAAAAAAAAIc/P_IuVC0h3LU/s320/java3.PNG" alt="" id="BLOGGER_PHOTO_ID_5346722173545861714" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Also Read :&lt;br /&gt;&lt;/span&gt;&lt;a href="http://java-er.blogspot.com/2009/06/introduction-java-language.html"&gt;Introduction JAVA language&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/what-is-java-technology.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/what-is-java-technology.html"&gt;&lt;span style="font-size: 100%;"&gt;What is JAVA Technology&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/why-learn-java.html"&gt;Why Learn Java?&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-449967153578498941?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/449967153578498941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/some-features-of-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/449967153578498941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/449967153578498941'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/some-features-of-java.html' title='Some Features of JAVA'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_VYWsCRPhmZA/SjNfGrCPqNI/AAAAAAAAAIU/THFOCI-o-ik/s72-c/java2.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-8131012090441790630</id><published>2009-06-12T00:57:00.000-07:00</published><updated>2009-06-13T01:24:36.512-07:00</updated><title type='text'>Why Learn Java?</title><content type='html'>Based on the official white paper from SUN, Java has the following characteristics:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; 1. Simple  &lt;/span&gt;&lt;br /&gt;Java programming language using a syntax similar to C + + but syntax in Java has improved a lot, especially the pointer use a complex and multiple inheritance. Java also memory using automatic memory allocation and garbage collection.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Object-oriented (Object Oriented)  &lt;/span&gt;&lt;br /&gt;Java programming using the object-oriented programming can be made in modular and can be used again. Programming object-oriented memodelkan into the real world objects and the interaction between these objects.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Didistribusi can easily  &lt;/span&gt;&lt;br /&gt;Made to create a Java application terdistribusi easily with the libraries that integrate networking in Java.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Interpreter  &lt;/span&gt;&lt;br /&gt;The program is run using the Java interpreter Java Virtual Machine that is (JVM). This causes the Java source code that was compiled into Java bytecodes can be run on a platform that is different.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Robust  &lt;/span&gt;&lt;br /&gt;Java mempuyai high reliability. The Java compiler has ability to detect errors more thoroughly than the language other programming. Have Java runtime Exception-handling for help overcome the error in programming.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. Safe&lt;/span&gt;&lt;br /&gt;As a programming language for Internet applications and terdistribusi, Java have some mechanism for maintaining the security of the application does not used to damage the computer systems that run applications it.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; 7. Architecture Neutral&lt;/span&gt;&lt;br /&gt;Java programs are platform independent. The program has enough one version that can run on different platforms with Java Virtual Machine.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. Portable&lt;/span&gt;&lt;br /&gt;Source code and Java programs can easily be brought to the platform different without having to re-compiled.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;9. Performance&lt;/span&gt;&lt;br /&gt;Performance in Java are often perceived to be less high. However, performance Java can be improved by using the compilation of Java, such as artificial Inprise, Microsoft and Symantec to use the Just In Time Compilers (JIT).&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10. Multi threaded &lt;/span&gt;&lt;br /&gt;Java has the ability to create a program that can be to do some work in at once and simultaneous.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;11. Dynamic &lt;/span&gt;&lt;br /&gt;Java is designed to be run in a dynamic environment. Changes in a class by adding properties or methods can be possible without the program that uses the class.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Also Read:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/introduction-java-language.html"&gt;Introduction JAVA language&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/what-is-java-technology.html"&gt;&lt;span style="font-size: 100%;"&gt;What is JAVA Technology&lt;/span&gt;&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/what-is-java-technology.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/some-features-of-java.html"&gt;Some Features of JAVA&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/why-learn-java.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/why-learn-java.html"&gt;&lt;/a&gt;&lt;span class="post-author vcard"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-8131012090441790630?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/8131012090441790630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/why-learn-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/8131012090441790630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/8131012090441790630'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/why-learn-java.html' title='Why Learn Java?'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-3715864538918254107</id><published>2009-06-11T23:56:00.000-07:00</published><updated>2009-06-13T01:20:35.377-07:00</updated><title type='text'>What is JAVA Technology</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 0);"&gt;A Programming Language&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;As a programming language, Java can create all forms of applications, desktop, web and other, as is made by using language conventional programming in the other. Java is a language of object-oriented programming (oop) and can run on various operating system platforms. Java development is not only focused on a single operating system, but developed for different system operation and is open source.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;A Development Environment&lt;/span&gt;&lt;br /&gt;As a developer tools, Java technology provides many tools:&lt;br /&gt;compiler, interpreter, compiler documentation, packet class, and so forth.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;An application&lt;/span&gt;&lt;br /&gt;Applications with the Java technology in general is a versatile application that can be run on all machines that have Java Runtime Environment (JRE).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;A Deployment Environment&lt;/span&gt;&lt;br /&gt;There are two main components of the Deployment Environment. The first is JRE, which is located on the J2SDK package, containing classes for all packages Java technology includes a base class of Java, GUI components, and so forth.&lt;br /&gt;The other components found in the Web Browser. Nearly all Web browsers provide interpreters and commercial runtime environment of Java technology.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;Also Read :&lt;br /&gt;&lt;/span&gt;&lt;a href="http://java-er.blogspot.com/2009/06/introduction-java-language.html"&gt;Introduction JAVA language&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/introduction-java-language.html"&gt;&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/some-features-of-java.html"&gt;Some Features of JAVA&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/why-learn-java.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://java-er.blogspot.com/2009/06/why-learn-java.html"&gt;Why Learn Java?&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-3715864538918254107?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/3715864538918254107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/what-is-java-technology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/3715864538918254107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/3715864538918254107'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/what-is-java-technology.html' title='What is JAVA Technology'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-49336672165372363.post-436022410949351979</id><published>2009-06-11T23:06:00.000-07:00</published><updated>2009-06-13T01:18:36.371-07:00</updated><title type='text'>Introduction JAVA language</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Background JAVA Language&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Brief History of JAVA&lt;br /&gt;&lt;/span&gt;In 1991, a group of Sun engineers led by Patrick Naughton and James Gosling wanted to design a computer language for consumer devices such as cable TV Box. Because the device does not have a lot of memory, language must be small and contain a viscous code. Also because manufakturmanufaktur select a different processor is also different, the language must free from any manufacturer. Project given the code name "Green".&lt;br /&gt;The need for flexibility, a small, wiry and the code of the platform neutral bringing the team to learn the implementation of the Pascal never tried. Niklaus Wirth, creator of the language Pascal was designed that resulted in a portable language intermediate code for the hypothetical machine. This machine is often called the machine maya (virtual machine). This code can then be used in any engine that have interpreters. Green project to use virtual machines to overcome the main issues about the architecture of the machine neutral.&lt;br /&gt;Because people in the project Green-based C + + and Pascal is not the most of syntax is taken from C + +, and adopted the orientation of the object and not procedural. Initially created a language called "Oak" by James Gosling who get inspiration from a tree that is on the office, but as the name itself is the name of Oak programming language that have been previously, and then replace it with SUN JAVA. Name JAVA inspired on their own when they're enjoying a cup of coffee in a a coffee shop and accidentally one of them mention the word JAVA expressive ore origin coffee. Finally, they agreed to provide the name of the programming language Java name.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;Product is the first project Green Star 7 (* 7), a remote control that very clever. Because the market is still not interested in the consumer products Green intelligent then the project must find a market of technology created. At the same time, the implementation of the WWW and Internet are experiencing rapid growth. On the other hand, members of the project also Green&lt;br /&gt;realize that the Java programming can be used on the internet, so that the application of the technology further into the lead role on the web.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjH46tvwwJI/AAAAAAAAAIM/LYO5jT_G9oo/s1600-h/java1.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 140px;" src="http://2.bp.blogspot.com/_VYWsCRPhmZA/SjH46tvwwJI/AAAAAAAAAIM/LYO5jT_G9oo/s320/java1.PNG" alt="" id="BLOGGER_PHOTO_ID_5346327920261513362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Java has been the most important features of language&lt;br /&gt;programming of computing since the development of modern humans:&lt;br /&gt;&lt;ol&gt;&lt;li&gt; Of SIMULA, the language on an 65-year, the language that most affect Java C + + as well. Adopted this language from the formation of base-derivative object-oriented programming. &lt;/li&gt;&lt;li&gt; Of LISP - language 55 years-an. Adopted garbage collection facilities, and the ability to replicate the generic list processing, even though this facility is rarely that utilize. &lt;/li&gt;&lt;li&gt; From Algol - a language in an 60-year, taken control of the structure assets. &lt;/li&gt;&lt;li&gt; From C + +, the syntax was adopted, in part semantiks and exception handling &lt;/li&gt;&lt;li&gt; There's language, taken strongly type, and exception handling. &lt;/li&gt;&lt;li&gt; From Objective C, taken interface facilities. &lt;/li&gt;&lt;li&gt; Of the Smalltalk language, the approach taken single-root class hiérarchie, where the object is one inheritance hierarchy &lt;/li&gt;&lt;li&gt; From the Eiffel language, facilities assertion that applied at the start of part jdk 1.4&lt;/li&gt;&lt;/ol&gt;&lt;span style="color: rgb(255, 102, 0); font-weight: bold;"&gt;Also Read :&lt;/span&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/what-is-java-technology.html"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;What is JAVA Technology&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/why-learn-java.html"&gt;Why Learn Java?&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java-er.blogspot.com/2009/06/some-features-of-java.html"&gt;Some Features of JAVA&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/49336672165372363-436022410949351979?l=java-er.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-er.blogspot.com/feeds/436022410949351979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-er.blogspot.com/2009/06/introduction-java-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/436022410949351979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/49336672165372363/posts/default/436022410949351979'/><link rel='alternate' type='text/html' href='http://java-er.blogspot.com/2009/06/introduction-java-language.html' title='Introduction JAVA language'/><author><name>Padang Setiarno</name><uri>http://www.blogger.com/profile/14780172621799006395</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_VYWsCRPhmZA/Si9ojm_9faI/AAAAAAAAAG8/XIsGyizHAy4/S220/look+at+my+eye.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_VYWsCRPhmZA/SjH46tvwwJI/AAAAAAAAAIM/LYO5jT_G9oo/s72-c/java1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
