<?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-7888298150727175634</id><updated>2011-11-28T00:34:31.874+01:00</updated><title type='text'>VOTE SMART LAWSON (a.k.a INSTALLATION) 4 NACOSS 11/12</title><subtitle type='html'>ALL ABOUT COMPUTER</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-4347387766455134880</id><published>2011-07-08T13:14:00.000+01:00</published><updated>2011-07-08T13:21:16.512+01:00</updated><title type='text'>LEARN JAVA AND TEACH OTHERS</title><content type='html'>What is programming?&lt;br /&gt;&lt;br /&gt;Computer program is a set of instructions that guide a computer to execute a particular task. It is like a recipe for a cook in making a particular dish. The recipe contains a list of ingredients called the data or variables, and a list of steps that guide the computer what to do with the data. So programming is the technique of making a computer to perform something you want to do. &lt;br /&gt;Programming or coding is a language that is used by operating systems to perform the task. We know computer understands binary languages with digits 1s and 0s. These binary languages are difficult to understand by human; so we generally use an intermediate language instead of binary language. Again the program uses high-level language that is interpreted into bytes that the computer understands. So a programmer writes a source code and uses a tool or interpreter that allows the computer to read, translate and execute the programs to perform a function. &lt;br /&gt;&lt;br /&gt;What is Java, it?s history?&lt;br /&gt;&lt;br /&gt;Java is a high-level object-oriented programming language developed by the Sun Microsystems.&lt;br /&gt;What is Java, it’s history?&lt;br /&gt;Java is a high-level object-oriented programming language developed by the Sun Microsystems. Though it is associated with the World Wide Web but it is older than the origin of Web. It was only developed keeping in mind the consumer electronics and communication equipments. It came into existence as a part of web application, web services and a platform independent programming language in the 1990s. &lt;br /&gt;&lt;br /&gt;Download JDK &lt;br /&gt;What is JDK (Java Development Kit) &lt;br /&gt;JDK is a software development program provided by sun Microsystems. Java Development Kit or JDK comes in various version and can be downloaded free from the sun Microsystems. JVM compiler, debugger and other tools are used with JDK for developing java based application &amp; java applets. So make sure that your JVM compiler &amp; JDK versions are same. &lt;br /&gt;JDK also known as Java 2 Platform, That comes in three editions J2ME, J2SE &amp; J2EE. If you are beginner or learning Java then start by downloading J2SE.&lt;br /&gt;Acronyms:&lt;br /&gt;JDK Java Development Kit&lt;br /&gt;JVM Java virtual machine&lt;br /&gt;Download JDK or Jcreator&lt;br /&gt;You can download JDK from www.javasoft.com/j2se&lt;br /&gt;Latest version of JDK&lt;br /&gt;1. JDK 5.0 Update 6&lt;br /&gt;The full internal version number for this update release is 1.5.0_06-b05 (where "b" means "build"). The external version number is 5.0u6. Java Version 1.5.0_06 introduces various security enhancements in Java Plug-in and Java Web Start to better protect users and enterprises. For more information please visit: http://java.sun.com/j2se/1.5.0/ReleaseNotes.html &lt;br /&gt;&lt;br /&gt;Getting Started - Write your First Java Program&lt;br /&gt;&lt;br /&gt;Let us begin by writing our first Java program that prints a message "Hello, world!" to the display console, as shown:&lt;br /&gt;&lt;br /&gt;Hello, world!&lt;br /&gt;&lt;br /&gt;You could write Java programs using a programming text editor or an integrated development tool (such as Eclipse or NetBeans), Depending on your choice, read:&lt;br /&gt;&lt;br /&gt;* writing your first Java program using JDK and a programming text editor (try this if you are not sure).&lt;br /&gt;* writing your first Java program using Eclipse.&lt;br /&gt;* writing your first Java program using NetBeans.&lt;br /&gt;&lt;br /&gt;Hello, world&lt;br /&gt;&lt;br /&gt;Dissecting Hello.java: Let us dissect the "Hello-world" program (reproduced below with line numbers added on the left panel to help in the explanation).&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* First Java program, which says "Hello, world!"&lt;br /&gt;*/&lt;br /&gt;public class Hello { // To save as "Hello.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;System.out.println("Hello, world!"); // Print message&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The statements after // are called comments. Comments are not executable, but provide useful explanation to you and your readers. There are two kinds of comments:&lt;br /&gt;&lt;br /&gt;1. Multi-line Comment: begins with "/*" and ends with "*/", and may span more than one lines (as in Lines 1-3).&lt;br /&gt;2. End-of-line Comment: begins with "//" and lasts until the end of the current line (as in Lines 4 and 6).&lt;br /&gt;&lt;br /&gt;The basic unit of a Java program is a class. A class called "Hello" is defined with the keyword "class" in Lines 4-8, as follows:&lt;br /&gt;&lt;br /&gt;public class Hello { ...... } // Use keyword "class" to define a class&lt;br /&gt;// { ...... } is the "body" of the class&lt;br /&gt;// The keyword "public" will be discussed later&lt;br /&gt;&lt;br /&gt;In Java, the name of the source file must be the same as the name of the public class with a mandatory file extension of ".java". Hence, this file must be saved as "Hello.java".&lt;br /&gt;&lt;br /&gt;Lines 5-7 defines the so-called main() method, which is the starting point, or entry point, of program execution, as follows:&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) { ...... } // main() method is the entry point of program execution&lt;br /&gt;// { ...... } is the "body" of the method,&lt;br /&gt;// which contains your programming statements.&lt;br /&gt;// Other keywords will be discussed later.&lt;br /&gt;&lt;br /&gt;In Line 6, the method System.out.println("Hello, world!") is used to print the message string "Hello, world!". A string is surrounded by a pair of double quotes and contain texts. The text will be printed as it is, without the double quotes.&lt;br /&gt;&lt;br /&gt;A programming statement performs a piece of programmming action, which must be terminated by a semi-colon ";", as in Line 6.&lt;br /&gt;&lt;br /&gt;A block is a group of programming statements enclosed by braces { }. There are two blocks in this program. One contains the body of the class Hello. The other contains the body of the main() method. There is no need to put a semi-colon after the closing brace.&lt;br /&gt;&lt;br /&gt;Extra white-spaces, tabs, and lines are ignored, but they could help you and your readers to better understand your program. Use them liberally.&lt;br /&gt;&lt;br /&gt;Java is case sensitive - a ROSE is NOT a Rose, and is NOT a rose. The filename is also case sensitive.&lt;br /&gt;Java Program Template&lt;br /&gt;&lt;br /&gt;You can use the following template to write your Java programs. Choose a meaningful Classname that reflects the purpose of your program, and write your programming statements inside the body of the main() method. Don't worry about the other terms and keywords now, which will be explained in due course.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class Classname { // Choose a meaningful classname, save as "Classname.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;// Your programming statements here!&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Printing via System.out.println() and System.out.print()&lt;br /&gt;&lt;br /&gt;System.out.println(aString) prints aString to the display console, and brings the cursor to the beginning of the next line; while System.out.print(aString) prints aString but keeps the cursor after the printed string. Try the following program and explain the output produced.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class PrintTest { // Save as "PrintTest.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;System.out.println("Hello, world!"); // Advance to next line after printing "Hello, world!"&lt;br /&gt;System.out.println(); // Print a empty line&lt;br /&gt;System.out.print("Hello, world!"); // Cursor stayed after the printed string&lt;br /&gt;System.out.println("Hello,");&lt;br /&gt;System.out.print(" "); // Print a space&lt;br /&gt;System.out.print("world!");&lt;br /&gt;System.out.println("Hello, world!");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hello, world!&lt;br /&gt;&lt;br /&gt;Hello, world!Hello,&lt;br /&gt;world!Hello, world!&lt;br /&gt;&lt;br /&gt;Let's Write a Program to Add a Few Numbers&lt;br /&gt;&lt;br /&gt;Let's write a program to add five integers as follows:&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* Sum five numbers and print the result&lt;br /&gt;*/&lt;br /&gt;public class FiveNumberSum { // Save as "FiveNumberSum.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;int number1 = 11;&lt;br /&gt;int number2 = 22;&lt;br /&gt;int number3 = 33;&lt;br /&gt;int number4 = 44;&lt;br /&gt;int number5 = 55;&lt;br /&gt;int sum;&lt;br /&gt;sum = number1 + number2 + number3 + number4 + number5;&lt;br /&gt;System.out.print("The sum is "); // Print a descriptive string&lt;br /&gt;System.out.println(sum); // Print the value stored in sum&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum is 165&lt;br /&gt;&lt;br /&gt;Lines 6-10 declare five int (integer) variables called number1, number2, number3, number4, and number5; and assign then values of 11, 22, 33, 44, and 55 respectively, via the so-called assignment operator "=".&lt;br /&gt;&lt;br /&gt;Line 11 declares a int (integer) variable called sum, without assigning an initial value.&lt;br /&gt;&lt;br /&gt;Line 12 computes the sum of number1 to number5 and assign the result to the variable sum. The symbol '+' denotes arithmetic addition, just like Mathematics.&lt;br /&gt;&lt;br /&gt;Line 13 prints a descriptive string. A String is surrounded by double quotes, and will be printed as it is (but without the double quotes).&lt;br /&gt;&lt;br /&gt;Line 14 prints the value stored in the variable sum (in this case, the sum of the five numbers) - you should not surround a variable to be printed by double quotes.&lt;br /&gt;What is a Program?&lt;br /&gt;&lt;br /&gt;A program is a sequence of instructions (or programming statements), executing one after another - usually in a sequential manner, as illustrated in the following flow chart.&lt;br /&gt;sequential flow&lt;br /&gt;&lt;br /&gt;EXAMPLE: The following program prints the area and perimeter of a circle, given its radius. Take note that the programming statements are executed sequentially.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* Print the area and perimeter of a circle, given its radius.&lt;br /&gt;*/&lt;br /&gt;public class CircleComputation { // Saved as "CircleComputation.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;// Declare variables&lt;br /&gt;double radius;&lt;br /&gt;double area;&lt;br /&gt;double perimeter;&lt;br /&gt;&lt;br /&gt;// Assign a value to radius&lt;br /&gt;radius = 1.2;&lt;br /&gt;&lt;br /&gt;// Compute area and perimeter&lt;br /&gt;area = radius * radius * 3.1416;&lt;br /&gt;perimeter = 2.0 * radius * 3.1416;&lt;br /&gt;&lt;br /&gt;// Print results&lt;br /&gt;System.out.print("The radius is ");&lt;br /&gt;System.out.println(radius);&lt;br /&gt;System.out.print("The area is ");&lt;br /&gt;System.out.println(area);&lt;br /&gt;System.out.print("The perimeter is ");&lt;br /&gt;System.out.println(perimeter);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The radius is 1.2&lt;br /&gt;The area is 4.523904&lt;br /&gt;The perimeter is 7.53984&lt;br /&gt;&lt;br /&gt;Lines 7-9 declare three double variables, which can hold real numbers (or floating-point numbers). Line 12 assigns a value to the variable radius. Lines 15-16 compute the area and perimeter, based on the radius. Lines 19-24 print the results.&lt;br /&gt;&lt;br /&gt;Take note that the programming statements inside the main() are executed one after another, sequentially.&lt;br /&gt;What is a Variable?&lt;br /&gt;&lt;br /&gt;Computer programs manipulate (or process) data. A variable is used to store a piece of data for processing. It is called variable because you can change the value stored.&lt;br /&gt;&lt;br /&gt;More precisely, a variable is a named storage location, that stores a value of a particular data type. In other words, a variable has a name, a type and stores a value.&lt;br /&gt;&lt;br /&gt;* A variable has a name (or identifier), e.g., radius, area, age, height. The name is needed to uniquely identify each variable, so as to assign a value to the variable (e.g., radius=1.2), and retrieve the value stored (e.g., area = radius*radius*3.1416).&lt;br /&gt;* A variable has a type. Examples of type are:&lt;br /&gt;o int: for integers (whole numbers) such as 123 and -456;&lt;br /&gt;o double: for floating-point or real numbers, such as 3.1416, -55.66, having a decimal point and fractional part;&lt;br /&gt;o String: for texts such as "Hello", "Good Morning!". Text strings are enclosed within a pair of double quotes.&lt;br /&gt;* A variable can store a value of that particular type. It is important to take note that a variable in most programming languages is associated with a type, and can only store value of the particular type. For example, a int variable can store an integer value such as 123, but NOT real number such as 12.34, nor texts such as "Hello". The concept of type was introduced into the early programming languages to simplify intrepretation of data made up of 0s and 1s.&lt;br /&gt;&lt;br /&gt;The following diagram illustrates three types of variables: int, double and String. An int variable stores an integer (whole number). A double variable stores a real number. A String variable stores texts.&lt;br /&gt;variable&lt;br /&gt;&lt;br /&gt;To use a variable, you need to first declare its name and type, in one of the following syntaxes:&lt;br /&gt;&lt;br /&gt;var-type var-name; // Declare a variable of a type&lt;br /&gt;var-type var-name-1, var-name-2,...; // Declare multiple variables of the same type&lt;br /&gt;var-type var-name = initial-value; // Declare a variable of a type, and assign an initial value&lt;br /&gt;var-type var-name-1 = initial-value-1, var-name-2 = initial-value-2,... ; // Declare variables with initial values&lt;br /&gt;&lt;br /&gt;Take note that:&lt;br /&gt;&lt;br /&gt;* Each declaration statement is terminated with a semi-colon ";".&lt;br /&gt;* In multiple-variable declaration, the names are separated by commas ",".&lt;br /&gt;* The symbol "=", known as the assignment operator, can be used to assign an initial value (of the declared type) to the variable.&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;&lt;br /&gt;int sum; // Declare a variable named "sum" of the type "int" for storing an integer.&lt;br /&gt;// Terminate the statement with a semi-colon.&lt;br /&gt;int number1, number2; // Declare two "int" variables named "number1" and "number2",&lt;br /&gt;// separated by a comma.&lt;br /&gt;double average; // Declare a variable named "average" of the type "double" for storing a real number.&lt;br /&gt;int height = 20; // Declare an int variable, and assign an initial value. &lt;br /&gt;&lt;br /&gt;Once a variable is declared, you can assign and re-assign a value to a variable, via the assignment operator "=". For example,&lt;br /&gt;&lt;br /&gt;int number; // Declare a variable named "number" of the type "int" (integer)&lt;br /&gt;number = 99; // Assign an integer value of 99 to the variable "number"&lt;br /&gt;number = 88; // Re-assign a value of 88 to "number"&lt;br /&gt;number = number + 1; // Evaluate "number + 1", and assign the result back to "number"&lt;br /&gt;int sum = 0; // Declare an int variable named sum and assign an initial value of 0&lt;br /&gt;sum = sum + number; // Evaluate "sum + number", and assign the result back to "sum", i.e. add number into sum&lt;br /&gt;int num1 = 5, num2 = 6; // Declare and initialize two int variables in one statement, separated by a comma&lt;br /&gt;double radius = 1.5; // Declare a variable name radius, and initialize to 1.5&lt;br /&gt;int number; // ERROR: A variable named "number" has already been declared&lt;br /&gt;sum = 55.66; // ERROR: The variable "sum" is an int. It cannot be assigned a floating-point number&lt;br /&gt;sum = "Hello"; // ERROR: The variable "sum" is an int. It cannot be assigned a text string&lt;br /&gt;&lt;br /&gt;Take note that:&lt;br /&gt;&lt;br /&gt;* Each variable can only be declared once.&lt;br /&gt;* You can declare a variable anywhere inside the program, as long as it is declared before it is being used.&lt;br /&gt;* Once the type of a variable is declared, it can only store a value belonging to this particular type. For example, an int variable can hold only integer such as 123, and NOT floating-point number such as -2.17 or text string such as "Hello".&lt;br /&gt;* The type of a variable cannot be changed inside the program.&lt;br /&gt;&lt;br /&gt;I have shown your two data types in the above example: int for integer and double for floating-point number (or real number). Take note that in programming, int and double are two distinct types and special caution must be taken when mixing them in an operation, which shall be explained later.&lt;br /&gt;Basic Arithmetic Operations&lt;br /&gt;&lt;br /&gt;The basic arithmetic operations are:&lt;br /&gt;&lt;br /&gt;* addition (+)&lt;br /&gt;* subtraction (-)&lt;br /&gt;* multiplication (*)&lt;br /&gt;* division (/)&lt;br /&gt;* remainder or modulo (%)&lt;br /&gt;* increment (by 1) (++)&lt;br /&gt;* decrement (by 1) (--)&lt;br /&gt;&lt;br /&gt;Addition, subtraction, multiplication, division and remainder take two operands (binary operators); while increment and decrement take only one operand (unary operators).&lt;br /&gt;&lt;br /&gt;The following program illustrates these arithmetic operations.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;27&lt;br /&gt;28&lt;br /&gt;29&lt;br /&gt;30&lt;br /&gt;31&lt;br /&gt;32&lt;br /&gt;33&lt;br /&gt;34&lt;br /&gt;35&lt;br /&gt;36&lt;br /&gt;37&lt;br /&gt;38&lt;br /&gt;39&lt;br /&gt;40&lt;br /&gt;41&lt;br /&gt;42&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Test Arithmetic Operations&lt;br /&gt;*/&lt;br /&gt;public class ArithmeticTest { // Save as "ArithmeticTest.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;&lt;br /&gt;int number1 = 98; // Declare an int variable number1 and initialize it to 98&lt;br /&gt;int number2 = 5; // Declare an int variable number2 and initialize it to 5&lt;br /&gt;int sum, difference, product, quotient, remainder; // Declare five int variables to hold results&lt;br /&gt;&lt;br /&gt;// Perform arithmetic Operations&lt;br /&gt;sum = number1 + number2;&lt;br /&gt;difference = number1 - number2;&lt;br /&gt;product = number1 * number2;&lt;br /&gt;quotient = number1 / number2;&lt;br /&gt;remainder = number1 % number2;&lt;br /&gt;System.out.print("The sum, difference, product, quotient and remainder of "); // Print description&lt;br /&gt;System.out.print(number1); // Print the value of the variable&lt;br /&gt;System.out.print(" and ");&lt;br /&gt;System.out.print(number2);&lt;br /&gt;System.out.print(" are ");&lt;br /&gt;System.out.print(sum);&lt;br /&gt;System.out.print(", ");&lt;br /&gt;System.out.print(difference);&lt;br /&gt;System.out.print(", ");&lt;br /&gt;System.out.print(product);&lt;br /&gt;System.out.print(", ");&lt;br /&gt;System.out.print(quotient);&lt;br /&gt;System.out.print(", and ");&lt;br /&gt;System.out.println(remainder);&lt;br /&gt;&lt;br /&gt;number1++; // Increment the value stored in the variable "number1" by 1&lt;br /&gt;// Same as "number1 = number1 + 1"&lt;br /&gt;number2--; // Decrement the value stored in the variable "number2" by 1&lt;br /&gt;// Same as "number2 = number2 - 1"&lt;br /&gt;System.out.println("number1 after increment is " + number1); // Print description and variable&lt;br /&gt;System.out.println("number2 after decrement is " + number2);&lt;br /&gt;quotient = number1 / number2; &lt;br /&gt;System.out.println("The new quotient of " + number1 + " and " + number2 &lt;br /&gt;+ " is " + quotient);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum, difference, product, quotient and remainder of 98 and 5 are 103, 93, 490, 19, and 3&lt;br /&gt;number1 after increment is 99&lt;br /&gt;number2 after decrement is 4&lt;br /&gt;The new quotient of 99 and 4 is 24&lt;br /&gt;&lt;br /&gt;Lines 7-8 declare and initialize two int (integer) variables number1 and number2. Line 9 declares five int variables sum, difference, product, quotient, and remainder to hold the results of operations, in one statement (with items separated by commas), without assigning initial values.&lt;br /&gt;&lt;br /&gt;Lines 12-16 carry out the arithmetic operations on variables number1 and number2. Take note that division of two integers produces a truncated integer, e.g., 98/5 → 19, 99/4 → 24, and 1/2 → 0.&lt;br /&gt;&lt;br /&gt;Lines 17-30 print the results of the arithmetic operations, with appropriate string descriptions in between. Take note that text string are enclosed within double-quotes, and will get printed as it is, including the white spaces but without the double quotes. To print the value stored in a variable, no double quotes should be used. For example,&lt;br /&gt;&lt;br /&gt;System.out.println("sum"); // Print text string "sum" - as it is&lt;br /&gt;System.out.println(sum); // Print the value stored in variable sum, e.g., 98&lt;br /&gt;&lt;br /&gt;Lines 32 and 34 illustrate the increment and decrement operations. Unlike "+", "-", "*", "/" and "%", which work on two operands (binary operators), "++" and "--" operate on only one operand (unary operators).&lt;br /&gt;&lt;br /&gt;Lines 36-37 print the new values stored after the increment/decrement operations. Take note that instead of using many print() statements as in Lines 17-30, we could simply place all the items (text strings and variables) into one println(), with the items separated by "+". In this case, "+" does not perform addition. Instead, it concatenates or joins all the items together. Line 36 provides another example.&lt;br /&gt;&lt;br /&gt;TRY:&lt;br /&gt;&lt;br /&gt;1. Combining Lines 17-30 into one single println() statement, using "+" to concatenate all the items together.&lt;br /&gt;2. Introduce one more int variable called number3, and assign it an integer value of 77. Compute and print the sum and product of all the three numbers.&lt;br /&gt;3. In Mathematics, we could omit the multiplication sign in an arithmetic expression, e.g., x = 5a + 4b. In programming, you need to explicitly provide all the operators, i.e., x = 5*a + 4*b. Try printing the sum of 31 times of number1 and 17 times of number2 and 87 time of number3.&lt;br /&gt;&lt;br /&gt;What If Your Need To Add Many Numbers?&lt;br /&gt;&lt;br /&gt;Suppose that you want to add all the integers from 1 to 1000. If you follow the previous example, you would require a thousand-line program! Instead, you could use a loop in your program to perform a repetitive task, that is what the computer is good at.&lt;br /&gt;Loop&lt;br /&gt;&lt;br /&gt;Try the following program, which sums all the integers from a lowerbound (=1) to an upperbound (=1000) using a so-called for-loop.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* Sum from a lowerbound to an upperbound using a for-loop&lt;br /&gt;*/&lt;br /&gt;public class RunningNumberSum { // Save as "RunningNumberSum.java"&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;int lowerbound = 1; // Store the lowerbound&lt;br /&gt;int upperbound = 1000; // Store the upperbound&lt;br /&gt;int sum = 0; // Declare an int variable "sum" to accumulate the numbers&lt;br /&gt;// Set the initial sum to 0&lt;br /&gt;// Use a for-loop to repeatitively sum from the lowerbound to the upperbound&lt;br /&gt;for (int number = 1; number &lt;= upperbound; number++) { sum = sum + number; // Accumulate number into sum } // Print the result System.out.println("The sum from " + lowerbound + " to " + upperbound + " is " + sum); } } The sum from 1 to 1000 is 500500 Let us dissect this program: Lines 6 and 7 declare two int variables to store the lowerbound and upperbound respectively. Line 8 declares an int variable named sum and initializes it to 0. This variable will be used to accumulate numbers over the steps in the repetitive loop. Lines 11-13 contain a so-called for-loop. A for-loop takes the following syntax: // Syntax for ( initialization ; test ; post-processing ) { body ; } // Example int sum = 0; for (int number = 1; number &lt;= 1000; number++) { sum = sum + number; } for-loop There are four parts in a for-loop. Three of them, initialization, test condition and post-processing, are enclosed in brackets ( ), and separated by two semi-colons ";". The body contains the repetitive task to be performed. As illustrated in the above flow chart, the initialization statement is first executed. The test is then evaluated. If the test returns true, the body is executed; followed by the post-processing statement. The test is checked again and the process repeats until the test is false. When the test is false, the for-loop completes and program execution continues to the next statement after the for-loop. In our program, the initialization statement declares an int variable named number and initializes it to lowerbound (=1). The test checks if number is equal to or less than upperbound (=1000). If it is true, the current value of number is added into the sum, and the post-processing statement "number++" increases the value of number by 1. The test is then checked again and the process repeats until the test is false (i.e., number increases to upperbound+1), which causes the for-loop to terminate. Execution then continues to the next statement (in Line 15). In this example, the loop repeats 1000 times (number having value of 1 to 1000). After the loop is completed, Line 15 prints the result with a proper description. TRY: 1. Modify the above program to sum all the numbers from 9 to 888. (Ans: 394680.) 2. Modify the above program to sum all the odd numbers between 1 to 1000. (Hint: Change the post-processing statement to "number = number + 2". Ans: 250000) 3. Modify the above program to sum all the numbers between 1 to 1000 that are divisible by 7. (Hint: Modify the initialization and post-processing statements. Ans: 71071.) 4. Modify the above program to find the sum of the square of all the numbers from 1 to 100, i.e. 1*1 + 2*2 + 3*3 +... (Ans: 338350.) 5. Modify the above program (called RunningNumberProduct) to compute the product of all the numbers from 1 to 10. (Hint: Use a variable called product instead of sum and initialize product to 1. Ans: 3628800.) Conditional What if you want to sum all the odd numbers and also all the even numbers between 1 and 1000? There are many ways to do this. You could declare two variables: sumOdd and sumEven. You can then use a conditional statement to check whether the number is odd or even, and accumulate the number into the respective sums. The program is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 /* * Sum the odd numbers and the even numbers from a lowerbound to an upperbound */ public class OddEvenSum { // Save as "OddEvenSum.java" public static void main(String[] args) { int lowerbound = 1; int upperbound = 1000; int sumOdd = 0; // For accumulating odd numbers, init to 0 int sumEven = 0; // For accumulating even numbers, init to 0 for (int number = lowerbound; number &lt;= upperbound; number++) { if (number % 2 == 0) { // Even sumEven += number; // Same as sumEven = sumEven + number } else { // Odd sumOdd += number; // Same as sumOdd = sumOdd + number } } // Print the result System.out.println("The sum of odd numbers from " + lowerbound + " to " + upperbound + " is " + sumOdd); System.out.println("The sum of even numbers from " + lowerbound + " to " + upperbound + " is " + sumEven); System.out.println("The difference between the two sums is " + (sumOdd - sumEven)); } } The sum of odd numbers from 1 to 1000 is 250000 The sum of even numbers from 1 to 1000 is 250500 The difference between the two sums is -500 Lines 8 and 9 declare two int variables named sumOdd and sumEven and initialize them to 0, for accumulating the odd and even numbers respectively. Lines 11-15 contain a conditional statement. The conditional statement can take one the following forms: if-then, if-then-else. // if-then syntax if ( condition ) { true-body ; } // Example if (mark &gt;= 50) {&lt;br /&gt;System.out.println("Congratulation!");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// if-then-else syntax&lt;br /&gt;if ( condition ) {&lt;br /&gt;true-body ;&lt;br /&gt;} else {&lt;br /&gt;false-body ;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Example&lt;br /&gt;if (mark &gt;= 50) {&lt;br /&gt;System.out.println("Congratulation!");&lt;br /&gt;} else {&lt;br /&gt;System.out.println("Try Harder!");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;For a if-then statement, the true-body is executed if the test condition is true. Otherwise, nothing is done and the execution continues to the next statement.&lt;br /&gt;&lt;br /&gt;For a if-then-else statement, the true-body is executed if the condition is true; otherwise, the false-body is executed. Execution is then continued to the next statement.&lt;br /&gt;&lt;br /&gt;The following flow chart illustrates the if-then and if-then-else statements.&lt;br /&gt;if-then if-then-else&lt;br /&gt;&lt;br /&gt;In our program, we use the remainder (or modulo) operator (%) to compute the remainder of number divides by 2. We then compare the remainder with 0 to test for even number.&lt;br /&gt;&lt;br /&gt;There are six comparison operators:&lt;br /&gt;&lt;br /&gt;* equal to (==)&lt;br /&gt;* not equal to (!=)&lt;br /&gt;* greater than (&gt;)&lt;br /&gt;* less than (&lt;) * greater than or equal to (&gt;=)&lt;br /&gt;* less than or equal to (&lt;=) Take note that the comparison operator for equality is a double-equal sign (==); whereas a single-equal sign (=) is the assignment operator. Combining Simple Conditions Suppose that you want to check whether a number x is between 1 and 100 (inclusive), i.e., 1 &lt;= x &lt;= 100. There are two simple conditions here, (x &gt;= 1) AND (x &lt;= 100). In programming, you cannot write 1 &lt;= x &lt;= 100, but need to write (x &gt;= 1) &amp;&amp; (x &lt;= 100), where "&amp;&amp;" denotes the "AND" operator. Similarly, suppose that you want to check whether a number x is divisible by 2 OR by 3, you have to write (x % 2 == 0) || (x % 3 == 0) where "||" denotes the "OR" operator. There are three so-called logical operators that operate on the boolean conditions: * AND (&amp;&amp;) * OR (||) * NOT (!) For examples: // Return true if x is between 0 and 100 (inclusive) (x &gt;= 0) &amp;&amp; (x &lt;= 100) // AND (&amp;&amp;) // Incorrect to use 0 &lt;= x &lt;= 100 // Return true if x is outside 0 and 100 (inclusive) (x &lt; 0) || (x &gt; 100) // OR (||)&lt;br /&gt;!((x &gt;= 0) &amp;&amp; (x &lt;= 100)) // NOT (!), AND (&amp;&amp;) // Return true if "year" is a leap year // A year is a leap year if it is divisible by 4 but not by 100, or it is divisible by 400. ((year % 4 == 0) &amp;&amp; (year % 100 != 0)) || (year % 400 == 0) TRY: 1. Write a program to sum all the integers between 1 and 1000, that are divisible by 13, 15 or 17, but not by 30. 2. Write a program to print all the leap years between AD1 and AD2010, and also print the number of leap years. Type double and Floating-Point Numbers Recall that a variable in Java has a name and a type, and can hold a value of only that particular type. We have so far used a type called int. A int variable holds an integer, such as 123 and -456; it cannot hold a real number, such as 12.34. In programming, real numbers such as 3.1416, -55.66 are called floating-point numbers, and belong to a type called double. For example, 1 2 3 4 5 6 7 8 9 10 11 public class CircleOperation { // Saved as "CircleOperation.java" public static void main(String[] args) { double radius = 1.2; // Type double for floating-point numbers double pi = 3.1416; double area; area = radius * radius * pi; System.out.println("The radius is " + radius); System.out.println("The area is " + area); System.out.println("The perimeter is " + (2.0 * pi * radius)); } } The radius is 1.2 The area is 4.523904 The perimeter is 7.53984 Mixing int and double, and Type Casting Although you can use a double to keep an integer value (e.g., double count = 5.0), you should use an int for integer, as int is far more efficient than double (e.g., in terms of running times, storage, among others). At times, you may need both int and double in your program. For example, keeping the sum from 1 to 1000 as int, and their average as double. You need to be extremely careful when different types are mixed. It is important to note that: * Arithmetic operations ('+', '-', '*', '/') of two int's produce an int; while arithmetic operations of two double's produce a double. Hence, 1/2 → 0 and 1.0/2.0 → 0.5. * Arithmetic operations of an int and a double produce a double. Hence, 1.0/2 → 0.5 and 1/2.0 → 0.5. You can assign an integer value to a double variable. The integer value will be converted to a double value automatically, e.g., 3 → 3.0. For example, int i = 3; double d; d = i; // 3 → 3.0, d = 3.0 d = 88; // 88 → 88.0, d = 88.0 double nought = 0; // 0 → 0.0; there is a subtle difference between int 0 and double 0.0 However, you CANNOT assign a double value directly to an int variable. This is because the fractional part could be lost, and the compiler signals an error in case that you were not aware. For example, double d = 5.5; int i; i = d; // Compilation Error i = 6.6; // Compilation Error To assign an double value to an int variable, you need to explicitly invoke a type-casting operation to truncate the fractional part, as follows: double d = 5.5; int i; i = (int) d; // Type-cast the value of double d, which returns an int value, // assign the resultant int value to int i. // The value stored in d is not affected. i = (int) 3.1416; // i = 3 Take note that type-casting operator, in the form of (int) or (double), applies to one operand immediately after the operator (i.e., unary operator). Type-casting is an operation, like increment or addition, which operates on a operand and return a value (in the specified type), e.g., (int)3.1416 takes a double value of 3.1416 and returns 3 (of type int); (double)5 takes an int value of 5 and returns 5.0 (of type double). Try the following program and explain the outputs produced. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 /* * Find the sum and average from a lowerbound to an upperbound */ public class TypeCastingTest { // Save as "TypeCastingTest.java" public static void main(String[] args) { int lowerbound = 1; int upperbound = 1000; int sum = 0; // sum is "int" double average; // average is "double" // Compute the sum (in "int") for (int number = lowerbound; number &lt;= upperbound; number++) { sum = sum + number; } System.out.println("The sum from " + lowerbound + " to " + upperbound + " is " + sum); // Compute the average (in "double") average = sum/1000; System.out.println("Average 1 is " + average); average = (double)sum/1000; System.out.println("Average 2 is " + average); average = sum/1000.0; System.out.println("Average 3 is " + average); average = (double)(sum/1000); System.out.println("Average 4 is " + average); } } The sum is 500500 Average 1 is 500.0 &lt;== incorrect Average 2 is 500.5 Average 3 is 500.5 Average 4 is 500.0 &lt;== incorrect The first average is incorrect, as int/int produces an int (of 500), which is converted to double (of 500.0) to be stored in average (of double). For the second average, the value of sum (of int) is first converted to double. Subsequently, double/int produces a double. For the third average, int/double produces double. For the fourth average, int/int produces an int (of 500), which is casted to double (of 500.0) and assigned to average (of double). TRY: 1. Write a program called HarmonicSeriesSum to compute the sum of a harmonic series 1 + 1/2 + 1/3 + 1/4 + .... + 1/n, where n = 1000. Keep the sum in a double variable, and take note that 1/2 gives 0 but 1.0/2 gives 0.5. Try computing the sum for n=1000, 5000, 10000, 50000, 100000. Hints: public class HarmonicSeriesSum { // Saved as "HarmonicSeriesSum.java" public static void main (String[] args) { int numTerms = 1000; double sum = 0.0; // For accumulating sum in double for (int denominator = 1; denominator &lt;= numTerms ; denominator++) { // Beware that int/int gives int ...... } // Print the sum ...... } } The sum is 7.484470860550343 2. Modify the above program (called GeometricSeriesSum) to compute the sum of this series: 1 + 1/2 + 1/4 + 1/8 + .... (for 1000 terms). Hints: Use post-processing statement of denominator = denominator*2. Summary I have presented the basics for you to get start in programming. To learn programming, you need to understand the syntaxes and features involved in the programming language that you chosen, and you have to practice, practice and practice, on as many problems as you could. REFERENCES &amp; RESOURCES * "New to Java Program Center" @ http://www.oracle.com/technetwork/topics/newtojava/overview/index.html, Sun Microsystems (now Oracle). * "The Java tutorials - Getting Started" @ http://download.oracle.com/javase/tutorial/ Sun Microsystems (now Oracle). * Y. Daniel Liang, "Introduction to Java Programming", latest edition. * Deitel &amp; Deitel, "Java, How to Program", latest edition. * Bruce Eckel, "Thinking in Java", latest edition. Latest version tested: JDK 1.6 Last modified: September, 2010 Feedback, comments, corrections, and errata can be sent to Chua Hock-Chuan (ehchua@ntu.edu.sg) | HOME What is Fibonacci Sequence? A series of whole numbers in which each number is the sum of the two preceding numbers. Beginning with 0 and 1, the sequence of Fibonacci numbers would be 0,1,1, 2, 3, 5, 8, 13, 21, 34, etc. using the formula n = n(-1) + n(-2), where the n(-1) means “the last number before n in the series” and n(-2) refers to “the second last one before n in the series. Example: The Fibonacci sequence starts with the numbers 0 and 1. The next number is the sum of these and subsequent numbers are the sum of the preceding pair. so we get 0,1,1,2,3,5.... write a java program to display the first 20 fibonacci numbers using for loop statement soln using FOR.LOOP. public class JavaFibonacciSeriesExample { public static void main(String[] args) { int limit = 20; long[] series = new long[limit]; series[0] = 0; series[1] = 1; for(int i=2; i &lt; limit; i++){ series[i] = series[i-1] + series[i-2]; } System.out.println("Fibonacci Series upto " + limit); for(int i=0; i&lt; limit; i++){ System.out.print(series[i] + " "); } } } Fibonacci Series upto 20 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 yet another insignificant programming notes... | HOME Java Programming Java Basics - Exercises Exercises on Flow Controls Exercises on Conditional (Decision) Exercise (if-else): Write a program called CheckMark which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise. Hints: public class CheckMark { // saved as "CheckMark.java" public static void main(String[] args) { int mark = 49; // set the value of mark here! System.out.println("The mark is " + mark); if ( ...... ) { System.out.println( ...... ); } else { System.out.println( ...... ); } } } Exercise (if-else): Write a program called CheckNumber which prints "Odd Number" if the int variable “number” is odd, or “Even Number” otherwise. Hints: public class CheckNumber { // saved as "CheckNumber.java" public static void main(String[] args) { int number = 49; // set the value of number here! System.out.println("The number is " + number); if ( ...... ) { System.out.println( ...... ); } else { System.out.println( ...... ); } } } Exercise (nested-if, switch-case): Write a program called PrintWord which prints "ONE", "TWO",... , "NINE", "OTHER" if the int variable "number" is 1, 2,... , 9 or other, respectively. Use (a) a "nested-if" statement; (b) a "switch-case" statement. Hints: public class PrintWord { // saved as "PrintWord.java" public static void main(String[] args) { int number = 5; // nested-if if (number == 1) { System.out.println("ONE"); } else if (......) { ...... } else if (......) { ...... } else { ...... } // switch-case switch(number) { case 1: System.out.println("ONE"); break; case 2: ...... ...... default: System.out.println("OTHER"); } } } Exercises on Loop (Iteration) Exercise (Loop): Write a program called SumAndAverage to produce the sum of 1, 2, 3, ..., to 100. Also compute and display the average. The output shall look like: The sum is 5050 The average is 50.5 Hints: public class SumAndAverage { // saved as "SumAndAverage.java" public static void main (String[] args) { int sum = 0; // store the accumulated sum double average; // average in double int lowerbound = 100; // the lower bound to sum int upperbound = 100; // the upper bound to sum for (int number = lowerbound; number &lt;= upperbound; number++) { // for loop sum += number; // same as "sum = sum + number" } // Compute average in double. Beware that int/int produces int. ...... // Print sum and average. ...... } } Try: 1. Modify the program to use a "while-do" loop instead of "for" loop. int number = 1; int sum = 0; while (number &lt;= upperbound) { sum += number; number++; } 2. Modify the program to use a "do-while" loop. int number = 1; int sum = 0; do { sum += number; number++; } while (number &lt;= upperbound); 3. Modify the program to sum from 111 to 8989, and compute the average. Introduce an int variable called count to count the numbers in the specified range. int count = 0; for (...; ...; ...) { ...... count++; } 4. Modify the program to sum only the odd numbers from 1 to 100, and compute the average. 5. Modify the program to sum those numbers from 1 to 100 that is divisible by 7, and compute the average. 6. Modify the program to find the "sum of the squares" of all the numbers from 1 to 100, i.e. 1*1 + 2*2 + 3*3 + ... + 100*100. Exercise (Loop): Write a program called Product1toN to compute the 10). Try computing the...32product of integers 1 to 10 (i.e., 1 product from 1 to 11, 1 to 12, 1 to 13 and 1 to 14. Write down the product obtained and explain the results. Hints: Declares an int variable called product (to accumulate the product) and initialize to 1. Exercise (Loop): Write a program called HarmonicSum to compute the sum of a harmonic series, as shown below, where n=50000. The program shall compute the sum from left-to-right as well as from the right-to-left. Obtain the difference between these two sums and explain the difference. Which sum is more accurate? Hints: public class HarmonicSum { // saved as "HarmonicSum.java" public static void main (String[] args) { int maxDenominator = 50000; double sumL2R = 0.0; // sum from left-to-right double sumR2L = 0.0; // sum from right-to-left // for-loop for summing from left-to-right for (int denominator = 1; denominator &lt;= maxDenominator; denominator++) { ...... // Beware that int/int gives int. } // for-loop for summing from right-to-left ...... // Find the difference and display ...... } } Exercise (Loop &amp; Condition): Write a program called ComputePI to compute the value of π, using the following series expansion. You have to decide on the termination criterion used in the computation (such as the number of terms used or the magnitude of an additional term). Is this series suitable for computing π? JDK maintains the value of π in a double constant called Math.PI. Compare the values obtained, in terms of the ratio between the value computed and the Math.PI, in percents. Hint: Add to sum if the denominator modulus 4 is 1, and subtract from sum if it is 3. double sum = 0; int maxDenom = 10000000; for (int denom = 1; ..... ; denom = denom + 2) { if (denom % 4 == 1) { sum += ......; } else if (denom % 4 == 3) { sum -= ......; } else { System.out.println("The computer has gone crazy?!"); } } Exercise (Loop &amp; Condition): Write a program called CozaLozaWoza which prints the number 1 to 110, 11 numbers per line. The program shall print "Coza" in place of the numbers which are multiples of 3, "Loza" for multiples of 5, "Woza" for multiples of 7, "CozaLoza" for multiples of 3 and 5, and so on. The output shall look like: 1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11 Coza 13 Woza CozaLoza 16 17 Coza 19 Loza CozaWoza 22 23 Coza Loza 26 Coza Woza 29 CozaLoza 31 32 Coza ...... Hints: public class CozaLozaWoza { // saved as "CozaLozaWoza.java" public static void main(String[] args) { int lowerbound = 1; int upperbound = 110; for (int number = lowerbound; number &lt;= upperbound; number++) { // Print "Coza" if number is divisible by 3 if (......) { System.out.print("Coza"); } // Print "Loza" if number is divisible by 5 if (......) { System.out.print(.....); } // Print "Woza" if number is divisible by 7 ...... // Print the number if it is not divisible by 3, 5 and 7 if (......) { ...... } // Print a space ...... // Print a newline if number is divisible by 11 if (......) { System.out.println(); } } } } Exercise (Loop): Write a program called Fibonacci to display the first 20 Fibonacci numbers F(n), where F(n)=F(n–1)+F(n–2) and F(1)=F(2)=1. Also compute their average. The output shall look like: The first 20 Fibonacci numbers are: 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 The average is 885.5 Hints: public class Fibonacci { public static void main (String args[]) { int n = 3; // the index n for F(n), starting from n=3 int fn; // F(n) to be computed int fnMinus1 = 1; // F(n-1), init to F(2) int fnMinus2 = 1; // F(n-2), init to F(1) int nMax = 20; // maximum n, inclusive int sum = fnMinus1 + fnMinus2; double average; System.out.println("The first " + nMax + " Fibonacci numbers are:"); ...... while (n &lt;= nMax) { // Compute F(n), print it and add to sum ...... // Adjust the index n and shift the numbers ...... } // Compute and display the average (=sum/nMax) ...... } } Tribonacci numbers are a sequence of numbers T(n) similar to Fibonacci numbers, except that a number is formed by adding the three previous numbers, i.e., T(n)=T(n-1)+T(n-2)+T(n-3), T(1)=1, T(2)=1 and T(3)=2. Write a program called Tribonacci to produce the first twenty Tribonacci numbers. Exercises on Nested-Loop Exercise (nested-loop): Write a program called SquareBoard that displays the following 5x5 pattern using two nested for-loops. # # # # # # # # # # # # # # # # # # # # # # # # # Your program should use only two output statements, one each of the followings: System.out.print("# "); // print "# ", without newline System.out.println(); // print a newline Hints: public class SquareBoard { // saved as "SquareBoard.java" public static void main (String[] args) { int size = 5; // size of the board for (int row = 1; ......; ......) { for (int col = 1; ......; ......) { ...... } ...... } } } Exercise (nested-loop): Write a program called CheckerBoard that displays the following 7x7 checkerboard pattern using two nested for-loops. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Your program should use only three output statements, one each of the followings: System.out.print("# "); // print "# ", without newline System.out.print(" "); // print a space, without newline System.out.println(); // print a newline Hints: public class CheckerBoard { // saved as "CheckerBoard.java" public static void main (String[] args) { int size = 7; // size of the board for (int row = 1; ......; ......) { // Use modulus 2 to find alternate lines if ((row % 2) == 0) { // row 2, 4, 6, 8 ...... } for (int col = 1; ......; ......) { ...... } ...... } } } Exercise (nested-loop): Write a program called TimeTable to produce the multiplication table of 1 to 9 as shown using two nested for-loops: * | 1 2 3 4 5 6 7 8 9 ------------------------------- 1 | 1 2 3 4 5 6 7 8 9 2 | 2 4 6 8 10 12 14 16 18 3 | 3 6 9 12 15 18 21 24 27 4 | 4 8 12 16 20 24 28 32 36 5 | 5 10 15 20 25 30 35 40 45 6 | 6 12 18 24 30 36 42 48 54 7 | 7 14 21 28 35 42 49 56 63 8 | 8 16 24 32 40 48 56 64 72 9 | 9 18 27 36 45 54 63 72 81 Modify the program to print the multiplication table of 1 to 12. Exercises on Input Exercise (Keyboard Input): Write a program called KeyboardInput to prompt user for an int, a double, and a String. The output shall look like (the inputs are shown in bold): Enter an integer: 12 Enter a floating point number: 33.44 Enter your name: Peter Hi! Peter, the sum of 12 and 33.44 is 45.44 Hints: import java.util.Scanner; // needed to use Scanner for input public class KeyboardInput { public static void main(String[] args) { int num1; double num2; String name; double sum; // Setup a Scanner called in to scan the keyboard (System.in) Scanner in = new Scanner(System.in); System.out.print("Enter an integer: "); num1 = in.nextInt(); // use nextInt() to read int System.out.print("Enter a floating point number: "); num2 = in.nextDouble(); // use nextDouble() to read double System.out.print("Enter your name: "); name = in.next(); // use next() to read String // Display ...... } } Exercise (File Input): Write a program called FileInput to read an int, a double, and a String form a text file called "in.txt", and produce the following output: The integer read is 12 The floating point number read is 33.44 The String read is "Peter" Hi! Peter, the sum of 12 and 33.44 is 45.44 You need to create a text file called "in.txt" (in Eclipse, right-click on the "project" ⇒ "New" ⇒ "File") with the following contents: 12 33.44 Peter import java.util.Scanner; // Needed to use Scanner for input import java.io.File; // Needed to use File import java.io.FileNotFoundException; // Needed for file operation public class FileInput { public static void main(String[] args) throws FileNotFoundException { // Needed for file operation int num1; double num2; String name; double sum; // Setup a Scanner to read from a text file Scanner in = new Scanner(new File("in.txt")); num1 = in.nextInt(); // use nextInt() to read int num2 = in.nextDouble(); // use nextDouble() to read double name = in.next(); // use next() to read String // Display ...... } } Exercise (User Input): Write a program called CircleComputation, which prompts user for a radius and compute the area and perimeter of a circle. The output shall look like: Enter the radius: 1.2 The area is 4.5239 The perimeter is 7.5398223686155035 Hints: π is kept in a constant called Math.PI. Exercise (User Input &amp; String Operations): Write a program called ReverseString, which prompts user for a String, and prints the reverse of the String. The output shall look like: Enter a String: abcdef The reverse of String "abcdef" is "fedcba". Hints: import java.util.Scanner; public class ReverseString { public static void main(String[] args) { String inStr; // input String int inStrLen; // length of the input String Scanner in = new Scanner(System.in); System.out.print("Enter a String: "); inStr = in.next(); // use next() to read String inStrLen = inStr.length(); // Use inStr.charAt(index) to extract character at 'index' from inStr ...... } } For a String called inStr, you can use inStr.length() to retrieve the length of the String; and inStr.charAt(index) to retrieve the char at the index position, where index begins with 0. Exercise (User Input &amp; String Operations): On your phone keypad, the alphabets are mapped to digits as follows: ABC(2), DEF(3), GHI(4), JKL(5), MNO(6), PQRS(7), TUV(8), WXYZ(9). Write a program called PhoneKeyPad, which prompts user for a string (case insensitive), and converts to a sequence of digits. Use a nested-if in this exercise. Modify your program to use an array for table look-up later. Hints: You can use in.next().toLowerCase() to read a string and convert it to lowercase to reduce your cases. Exercise (Palindrome): A word that reads the same backward as forward is called a palindrome, e.g., "mom", "dad", "racecar", "madam", and "Radar" (case-insensitive). Write a program called TestPalindromicWord, that prompts user for a word and prints ""xxx" is|is not a palindrome". Hints: Read in a word and convert to lowercase via in.next().toLowercase(). A phrase that reads the same backward as forward is also called a palindrome, e.g., "Madam, I'm Adam", "A man, a plan, a canal - Panama!" (ignoring punctuation and capitalization). Modify your program (called TestPalindromicPhrase) to test palindromic phrase. Hints: Read in the lowercase phrase via in.nextLine().toLowercase(). Maintain two indexes, forwardIndex and backwardIndex, used to scan the phrase forward and backward. Exercise (Bin2Dec): Write a program called Bin2Dec to convert a binary string into its equivalent decimal number. Your output shall look like: Enter a Binary string: 1011 The equivalent decimal number for binary "1011" is 11 Enter a Binary string: 1234 Error: Invalid Binary String "1234" Hints: For a n-bit binary number bn-1bn-2...b1b0, bi∈{0,1}, the equivalent decimal number is bn-1×2n-1+bn-2×2n-2+ ...+b1×21+b0×20. import java.util.Scanner; public class Bin2Dec { public static void main(String[] args) { String binStr; // input binary string int binStrLen; // length of the input string int dec = 0; // equivalent decimal number char binChar; // each individual char in the binary string Scanner in = new Scanner(System.in); // Read input binary string ...... // Convert binary string into Decimal ...... } } You can use JDK method Math.pow(x, y) to compute the x raises to the power of y. This method takes two doubles as argument and returns a double. You may have to cast the result back to int. To convert a char (of digit '0' to '9') to int, simply subtract by '0', e.g., '5'-'0'→5. Exercise (Hex2Dec): Write a program called HexToDec to convert a hexadecimal string into its equivalent decimal number. Your output shall look like: Enter a Hexadecimal string: 1a The equivalent decimal number for hexadecimal "1a" is 26 Enter a Hexadecimal string: 1y3 Error: Invalid Hexadecimal String "1y3" Hints: For a n-digit hexadecimal number hn-1hn-2...h1h0, hi∈{0,…,9,A,…,F}, the equivalent decimal number is hn-1×16n-1+hn-2×16n-2+ ...+h1×161+h0×160. You do not need a big nested-if statement of 16 cases (or 22 with upper and lower letters). Extract the individual character from the hexadecimal string, says c. If char c is between '0' to '9', you can get the integer offset via c-'0'. If c is between 'a' to 'f' or 'A' to 'F', the integer offset is c-'a'+10 or c-'A'+10. String hexStr; char hexChar; ...... hexChar = hexStr.charAt(i); ...... if (hexChar &gt;= '0' &amp;&amp; hexChar &lt;= '9') { ... (hexChar-'0') ... ... } else if (hexChar &gt;= 'a' &amp;&amp; hexChar &lt;= 'f') { // lowercase ... (hexChar-'a'+10) ... ... } else if (hexChar &gt;= 'A' &amp;&amp; hexChar &lt;= 'F') { // uppercase ... (hexChar-'A'+10) ... ... } else { System.out.println("Error: Invalid hexadecimal string"); System.exit(1); // quit the program } Exercises on Array Exercise (Array): Write a program called GradesAverage, which reads in n grades (of int between 0 and 100) and displays the average. You should keep the grades in an int[] (an array of int). Your output shall look like: Enter the number of students: 3 Enter the grade for student 1: 55 Enter the grade for student 2: 108 Invalid grade, try again... Enter the grade for student 2: 56 Enter the grade for student 3: 57 The average is 56.0 Exercise (Array): Write a program called Hex2Bin to convert a hexadecimal string into its equivalent binary string. The output shall look like: Enter a Hexadecimal string: 1abc The equivalent binary for hexadecimal "1abc" is 0001 1010 1011 1100 Hints: Use an array of 16 binary Strings corresponding to hexadecimal number '0' to 'F', as follows: String[] hexBits = {"0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111", "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"} Exercises on Command-line Arguments Exercise (Command-line arguments): Write a Java program called Arithmetic that takes three command-line arguments: two integers followed by an arithmetic operator (+, -, * or /). The program shall perform the corresponding operation on the two integers and print the result. For example: &gt; java Arithmetic 3 2 +&lt;br /&gt;3+2=5&lt;br /&gt;&lt;br /&gt;&gt; java Arithmetic 3 2 -&lt;br /&gt;3-2=1&lt;br /&gt;&lt;br /&gt;&gt; java Arithmetic 3 2 /&lt;br /&gt;3/2=1&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;The method main(String[] args) has a parameter: "an array of String", which is often (but not necessary) named args. This parameter captures the command-line arguments supplied by the user when the program is invoked. For example, if a user invokes:&lt;br /&gt;&lt;br /&gt;&gt; java Arithmetic 12345 4567 +&lt;br /&gt;&lt;br /&gt;The three command-line arguments "12345", "4567" and "+" will be captured in a String array and passed into the main() method as parameter args. That is,&lt;br /&gt;&lt;br /&gt;args is {"12345", "4567", "+"}; // args is a String array&lt;br /&gt;args.length is 3; // length of the array&lt;br /&gt;args[0] is "12345"; // 1st element of the String array&lt;br /&gt;args[1] is "4567"; // 2nd element of the String array&lt;br /&gt;args[2] is "+"; // 3rd element of the String array&lt;br /&gt;args[0].length() is 5; // length of 1st String element&lt;br /&gt;args[1].length() is 4; // length of the 2nd String element&lt;br /&gt;args[2].length() is 1; // length of the 3rd String element&lt;br /&gt;&lt;br /&gt;public class Arithmetic {&lt;br /&gt;public static void main (String[] args) {&lt;br /&gt;int operand1, operand2;&lt;br /&gt;char theOperator;&lt;br /&gt;&lt;br /&gt;// Check if there are 3 command-line arguments in the&lt;br /&gt;// String array args[] by using length variable of array.&lt;br /&gt;if (args.length != 3) {&lt;br /&gt;System.err.println("Usage: java Arithmetic int1 int2 op");&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Convert the 3 Strings args[0], args[1], args[2] to int and char.&lt;br /&gt;// Use the Integer.parseInt(aStr) to convert a String to an int.&lt;br /&gt;operand1 = Integer.parseInt(args[0]);&lt;br /&gt;operand2 = ......&lt;br /&gt;&lt;br /&gt;// Get the operator, assumed to be the first character of&lt;br /&gt;// the 3rd string. Use method charAt() of String.&lt;br /&gt;theOperator = args[2].charAt(0);&lt;br /&gt;System.out.print(args[0] + args[2] + args[1] + "=");&lt;br /&gt;&lt;br /&gt;switch(theOperator) {&lt;br /&gt;case ('-'):&lt;br /&gt;System.out.println(operand1 – operand2); break;&lt;br /&gt;case ('+'): ......&lt;br /&gt;case ('*'): ......&lt;br /&gt;case ('/'): ......&lt;br /&gt;default:&lt;br /&gt;System.err.println("\nError: invalid operator!"); &lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;&lt;br /&gt;* To provide command-line arguments, use the "cmd" shell to run your program in the form "java ClassName arg1 arg2 ....".&lt;br /&gt;* To provide command-line arguments in Eclipse, right click the source code ⇒ "Run As" ⇒ "Run Configurations..." ⇒ Select "Main" and choose the proper main class ⇒ Select "Arguments" ⇒ Enter the command-line arguments, e.g., "3 2 +" in "Program Arguments".&lt;br /&gt;* To provide command-line arguments in Netbeans, right click the "Project" name ⇒ "Set Configuration" ⇒ "Customize..." ⇒ Select categories "Run" ⇒ Enter the command-line arguments, e.g., "3 2 +" in the "Arguments" box (but make sure you select the proper Main class).&lt;br /&gt;&lt;br /&gt;Question: Try "java Arithmetic 2 4 *" (in CMD shell and Eclipse/Netbeans) and explain the result obtained. How to resolve this problem?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Command-line arguments): Write a Java program called SumDigits to sum up the individual digits of a positive integer, given in the command line. The output shall look like:&lt;br /&gt;&lt;br /&gt;&gt; java SumDigits 12345&lt;br /&gt;The sum of digits = 1 + 2 + 3 + 4 + 5 = 15&lt;br /&gt;&lt;br /&gt;Exercises on Method&lt;br /&gt;&lt;br /&gt;Exercise (Method): Write a program called GradesStatistics, which reads in n grades (of int between 0 and 100, inclusive) and displays the average, minimum, maximum, and standard deviation. Your program shall check for valid input. You should keep the grades in an int[] and use a method for each of the computations. Your output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the number of students: 4&lt;br /&gt;Enter the grade for student 1: 50&lt;br /&gt;Enter the grade for student 2: 51&lt;br /&gt;Enter the grade for student 3: 56&lt;br /&gt;Enter the grade for student 4: 53&lt;br /&gt;The average is 52.5&lt;br /&gt;The minimum is 50&lt;br /&gt;The maximum is 56&lt;br /&gt;The standard deviation is 2.29128784747792&lt;br /&gt;&lt;br /&gt;Hints: The formula for calculating standard deviation is:&lt;br /&gt;&lt;br /&gt;public class GradesStatistics {&lt;br /&gt;public static int[] grades; // Declare an int[], to be allocated later&lt;br /&gt;&lt;br /&gt;// main() method&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;readGrades();&lt;br /&gt;System.out.println("The average is " + average());&lt;br /&gt;System.out.println("The minimum is " + min());&lt;br /&gt;System.out.println("The maximum is " + max());&lt;br /&gt;System.out.println("The standard deviation is " + stdDev());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Prompt user for the number of students and allocate the "grades" array.&lt;br /&gt;// Then, prompt user for grade, check for valid grade, and store in "grades".&lt;br /&gt;public static void readGrades() { ....... }&lt;br /&gt;&lt;br /&gt;// Return the average value of int[] grades&lt;br /&gt;public static double average() { ...... }&lt;br /&gt;&lt;br /&gt;// Return the maximum value of int[] grades&lt;br /&gt;public static int max() { ...... }&lt;br /&gt;&lt;br /&gt;// Return the minimum value of int[] grades&lt;br /&gt;public static int min() { ....... }&lt;br /&gt;&lt;br /&gt;// Return the standard deviation of the int[] grades&lt;br /&gt;public static double stdDev() { ....... }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Method): Write a program called GradesHistogram, which reads in n grades (of int between 0 and 100, inclusive) from a text file called "grades.in" and displays the histogram. The file has the following format:&lt;br /&gt;&lt;br /&gt;numStduents:int&lt;br /&gt;grade1:int grade2:int .... gradeN:int&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;15&lt;br /&gt;49 50 51 59 0 5 9 10 15 19 50 55 89 99 100&lt;br /&gt;&lt;br /&gt;The output shall consist of a horizontal histogram and a vertical histogram as follows:&lt;br /&gt;&lt;br /&gt;0 - 9: ***&lt;br /&gt;10 - 19: ***&lt;br /&gt;20 - 29: &lt;br /&gt;30 - 39: &lt;br /&gt;40 - 49: *&lt;br /&gt;50 - 59: *****&lt;br /&gt;60 - 69: &lt;br /&gt;70 - 79: &lt;br /&gt;80 - 89: *&lt;br /&gt;90 -100: **&lt;br /&gt;&lt;br /&gt;* &lt;br /&gt;* &lt;br /&gt;* * * &lt;br /&gt;* * * * &lt;br /&gt;* * * * * * &lt;br /&gt;0-9 10-19 20-29 30-39 40-49 50-59 60-69 70-79 80-89 90-100&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class GradesHistogram {&lt;br /&gt;public static int[] grades;&lt;br /&gt;// Declare an int array of grades, to be allocated later&lt;br /&gt;public static int[] bins = new int[10];&lt;br /&gt;// Declare and allocate an int array for histogram bins.&lt;br /&gt;// 10 bins for 0-9, 10-19,...., 90-100&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;readGrades("grades.in");&lt;br /&gt;computeHistogram();&lt;br /&gt;printHistogramHorizontal();&lt;br /&gt;printHistogramVertical();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Read the grades from "filename", store in "grades" array.&lt;br /&gt;// Assume that the inputs are valid.&lt;br /&gt;public static void readGrades(String filename) { ...... }&lt;br /&gt;&lt;br /&gt;// Based on "grades" array, populate the "bins" array.&lt;br /&gt;public static void computeHistogram() { ....... }&lt;br /&gt;&lt;br /&gt;// Print histogram based on the "bins" array.&lt;br /&gt;public static void printHistogramHorizontal() { ...... }&lt;br /&gt;&lt;br /&gt;// Print histogram based on the "bins" array.&lt;br /&gt;public static void printHistogramVertical() { ...... }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comparing Two Numbers&lt;br /&gt;         &lt;br /&gt;This is a very simple example of Java that teaches you the method of comparing two numbers and finding out the greater one. First of all, name a class "Comparing" and take two numbers in this class. Here we have taken a=24 and b=25, now we have to find out whether a=b, a&gt;b or b&gt;a. To find out this apply if and else condition one by one. Now apply the condition "if (a=b)", if this satisfies then type that both are equal in the system class. If this doesn't satisfy, then check whether a&gt;b by applying the "else if" condition and type the message "a is greater than b" in the system class. Again this doesn't satisfy then 'else' condition as shown in the example will show that b is greater than a. &lt;br /&gt;Now compile and run the program and you will find the desired output. If you are getting any error then check the whole program thoroughly and surely you will get correct result. By compiling and running this exact program, you will find that b is greater than a.&lt;br /&gt;class  Comparing{&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;  int a=24, b=25;&lt;br /&gt;  if (a == b){&lt;br /&gt;  System.out.println("Both are equal");&lt;br /&gt;  }&lt;br /&gt;  else if(a&gt;b){&lt;br /&gt;  System.out.println("a is greater than b");&lt;br /&gt;  }&lt;br /&gt;  else{&lt;br /&gt;  System.out.println("b is greater than a");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;} &lt;br /&gt;Determining the largest number&lt;br /&gt;Posted on: June 1, 2007 at 12:00 AM &lt;br /&gt;This example of Java programming will teach you the coding for determining the largest number amongst three.&lt;br /&gt;Determining the largest number&lt;br /&gt;         &lt;br /&gt;This example of Java programming will teach you the coding for determining the largest number amongst three. Here we have taken three integers as x = 500, y = 70 and z = 3000. After defining these three integers under the class "largernumber" apply "if" and "else" conditions that can help you in finding the largest value one by one.  &lt;br /&gt;First check if "x&gt;y". If this satisfies then check whether x&gt;z or not. Again if this satisfies then write in the system class that "x is greater". Again the term "else" comes when "x" is not greater than "z". So check again, if "z" is greater than "y" or not. If this satisfies then type in the system class as "z is greater" otherwise (in the else condition) "y" is greater. Now check whether "y" is greater than "z" or not.&lt;br /&gt; If "x" is not greater than "y" as per the first condition, then the condition "else" comes and now you have to check if "y&gt;z" or not. If this satisfies then the output comes as "y is greater".&lt;br /&gt;Don't get confuse and analyze every condition one by one and follow this example.&lt;br /&gt;Here is the code of program:&lt;br /&gt;class largernumber{&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;  int x=500, y=70, z=3000;&lt;br /&gt;  if (x&gt;y){&lt;br /&gt;  if (x&gt;z){&lt;br /&gt;  System.out.println("x is greater");&lt;br /&gt;  }&lt;br /&gt;  else{&lt;br /&gt;  if(z&gt;y){&lt;br /&gt;  System.out.println("z is greater"); &lt;br /&gt;  }&lt;br /&gt;  else{&lt;br /&gt;  System.out.println("y is greater");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  else{&lt;br /&gt;  if (y&gt;z){&lt;br /&gt;  System.out.println("y is greater");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;Write a program to list all even numbers between two numbers&lt;br /&gt;Posted on: June 2, 2007 at 12:00 AM &lt;br /&gt;Here you will learn to write a program for listing out all the even numbers between two numbers.&lt;br /&gt;Write a program to list all even numbers between two numbers&lt;br /&gt;         &lt;br /&gt;Java Even Numbers - Even Numbers Example in Java:&lt;br /&gt;Here you will learn to write a program for listing out all the even numbers between two numbers. For this first create a class named AllEvenNum under the java.io package. Now use the try/catch exception to avoid any kind of input error. After this create a buffer class in which all the input data are stored and modified. Then give message as to "Enter number" in the System method.  &lt;br /&gt;As we have to find out all the even numbers between 1 and the input number, define an integer variable 'num'. Now apply ParseInt method that parses the string character into decimal integer. Again apply for loop in which define an integer i=1 and i&lt;=  num also with an increment operator. Then apply the if condition that i/2=0 i.e. to find even numbers which are divided by the integer 2. In the end apply the catch exception.  &lt;br /&gt;Now and compile and run the program, and enter your desired number to get all even numbers between 1 and this numbers.  &lt;br /&gt;Here is the code of the program: &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;class AllEvenNum{&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;  try{&lt;br /&gt;  BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("Enter number : ");&lt;br /&gt;  int num = Integer.parseInt(br1.readLine());&lt;br /&gt;  System.out.println("Even Numbers:");&lt;br /&gt;  for (int i=1;i &lt;=num ; i++){&lt;br /&gt;  if(i%2==0 ){&lt;br /&gt;  System.out.print(i+",");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  catch(Exception e){}&lt;br /&gt;  &lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;Write a program to calculate area and perimeter of a circle&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this section, you will learn to calculate the area and perimeter of a circle.&lt;br /&gt;Write a program to calculate area and perimeter of a circle&lt;br /&gt;         &lt;br /&gt;The given example will teach you the method for preparing a program to calculate the area and perimeter of a circle. First of all name a class as "CircleArea" under Java I/O package and define and integer r=o, which is the radius of the circle. Now use try exception to handle errors and other exceptional events. As we have to input the value of radius here create a buffered class with an object as 'br1'. This create a buffering character input stream that uses a default sized input buffer. The InputStreamReader here works as a translator that converts byte stream to character stream. Now type message that "Enter radius of circle" in the System.out.println method. &lt;br /&gt;Now use the parseInt() method of the Integer class in order to convert from external numeric format to internal format. Now create the Math class in which all the mathematical functions are defined. This Math class can be imported from the java.lang.* package. Write the program for both the cases: radius and perimeter. &lt;br /&gt;Before ending the program use the Catch mechanism that detects and catch user input errors. In the end compile and run the program and enter your desired value as radius for calculating the radius and perimeter of the circle.&lt;br /&gt;Here is the code of the program: &lt;br /&gt;import java.io.*;&lt;br /&gt;class CircleArea{&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  int r=0;&lt;br /&gt; try{&lt;br /&gt;  BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("Enter Radius of Circle  : ");&lt;br /&gt;  r = Integer.parseInt(br1.readLine());&lt;br /&gt;  double area = java.lang.Math.PI*r*r;&lt;br /&gt;  System.out.println("Area of Circle : "+area);&lt;br /&gt;  double  perimeter =2*java.lang.Math.PI*r ;&lt;br /&gt;  System.out.println("Perimeter of Circle : "+perimeter);&lt;br /&gt;  }&lt;br /&gt;  catch(Exception e){&lt;br /&gt;  System.out.println("Error : "+e);&lt;br /&gt;  }  &lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;Write a program to calculate factorial of any given number&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;This tutorial will teach you the methods for writing program to calculate factorial of any given number.&lt;br /&gt;Factorial Examples - Java Factorial Example to calculate factorial of any given number&lt;br /&gt;         &lt;br /&gt;This Java programming tutorial will teach you the methods for writing program to calculate factorial of any given number. First of all define a class "Factorial" under the Java I/O package. Java I/O package has a input stream and a output stream in which input stream is used for reading the stream and memory allocating and the output stream is used for writing bytes. As in this program we are going to insert certain instruction by creating buffer reader class, it is necessary to use 'try' and 'catch' block for catching and handling exceptions during execution of the program.   &lt;br /&gt;Here, we have to create a buffer for the string class that can be used to instantiate a changeable object for storing and processing a string of character. The strings length and content change as soon as any object is inserted, replaced or removed from the StringBuffer object.  &lt;br /&gt;Now create a buffer object that inherits properties from the string object class. Now create an InputStreamReader that reads bytes and decodes them into character by using certain 'charset'. Now use the ParseInt method for converting the parses the string argument to a decimal integer and define 'a' as an integer. Take an integer variable as fact=1 and insert the message in the System method.  &lt;br /&gt;Now applying for loop with conditions as integer i=1(intializer),  i&lt;=a and i++ as increment operator. So output result will be like fact=fact*i. &lt;br /&gt;Here is the code of the program: &lt;br /&gt;import java.io.*; &lt;br /&gt;class Factorial{&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;  try{&lt;br /&gt;  BufferedReader object = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("enter the number");&lt;br /&gt;  int a= Integer.parseInt(object.readLine());&lt;br /&gt;  int fact= 1;&lt;br /&gt;  System.out.println("Factorial of " +a+ ":");&lt;br /&gt;  for (int i= 1; i&lt;=a; i++){&lt;br /&gt;  fact=fact*i;&lt;br /&gt;  }&lt;br /&gt;  System.out.println(fact);&lt;br /&gt;  }&lt;br /&gt;  catch (Exception e){}&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;Palindrome Number Example in Java&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this section, you will learn about the palindrome number and how to determine any number is palindrome or not.&lt;br /&gt;Palindrome Number Example in Java &lt;br /&gt;         &lt;br /&gt;In this section, you will learn about the palindrome number and how to determine any number is palindrome or not. First of all we are going to read about the palindrome number.  This is the number that the actual number and after reversing this, in both cases the number is same that is called palindrome number otherwise not. Brief description below:&lt;br /&gt;Description of program:&lt;br /&gt;With the help of this program, we are going to determine whether the given number is palindrome or not.  To achieve the desired result, firstly we have to define a class named "Palindrome". After that we will ask the user to enter any integer type number and then we will reverse it. After reversing the number we will check whether the given number is palindrome or not. If the given number is larger, then it will display a message "Out of range!". &lt;br /&gt;Here is the code of this program&lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class Palindrome  {&lt;br /&gt;  public static void main(String [] args){&lt;br /&gt;  try{&lt;br /&gt;  BufferedReader object = new BufferedReader(&lt;br /&gt;  new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("Enter number");&lt;br /&gt;  int num= Integer.parseInt(object.readLine());&lt;br /&gt;  int n = num;&lt;br /&gt;  int rev=0;&lt;br /&gt;  System.out.println("Number: ");&lt;br /&gt;  System.out.println(" "+ num);&lt;br /&gt;  for (int i=0; i&lt;=num; i++){&lt;br /&gt;  int r=num%10;&lt;br /&gt;  num=num/10;&lt;br /&gt;  rev=rev*10+r;&lt;br /&gt;  i=0;&lt;br /&gt;  }&lt;br /&gt;  System.out.println("After reversing the number: "+ " ");&lt;br /&gt;  System.out.println(" "+ rev);  &lt;br /&gt;  if(n == rev){&lt;br /&gt;  System.out.print("Number is palindrome!");&lt;br /&gt;  }&lt;br /&gt;  else{&lt;br /&gt;  System.out.println("Number is not palindrome!");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  catch(Exception e){&lt;br /&gt;  System.out.println("Out of range!");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;Write a program for calculating area and perimeter of a rectangle&lt;br /&gt;Posted on: February 11, 2008 at 12:00 AM &lt;br /&gt;If you are a newbie in Java programming then our tutorials and examples will be helpful in understanding Java programming in the most simplest way.&lt;br /&gt;Write a program for calculating area and perimeter of a rectangle&lt;br /&gt;         &lt;br /&gt;If you are a newbie in Java programming then our tutorials and examples will be helpful in understanding Java programming in the most simplest way. Here after reading this lesson, you will be able to write program for calculating the area and perimeter of a rectangle. &lt;br /&gt;First of all create a class named RecArea under Java.io package. Now define two integer variable 'l' and 'w'. As the program will be based on keyboard numerical input, it is important for every programmer to use correct data without any mistake. In this case the exception methods like try/catch mechanism helps in detecting user input errors. So before starting the functional code, enclosed it with try clause so that any error in the statement causes the execution of the catch clauses. &lt;br /&gt;Now create an abstract buffer class which is the super class of all classes and represents a stream of input bytes.  The InputSreamReader reads the character stream and stores it in the buffer class. Now use parseInt for both length and width of the rectangle. This is an instance of class method and is used to convert a string to an integer. Define the area as l*w and perimeter as 2*(l+w) and in the end use the catch exception. &lt;br /&gt;Now compile and run the program and input the value as you see the message and get the ultimate result. If you find any kind of error, then check the whole program again. &lt;br /&gt;Here is the code of the program:&lt;br /&gt;import java.io.*;&lt;br /&gt;class RecArea &lt;br /&gt;{&lt;br /&gt;  public static void main(String[] args) &lt;br /&gt;  {&lt;br /&gt;&lt;br /&gt;  int l=0;&lt;br /&gt;  int w=0;&lt;br /&gt;&lt;br /&gt;  try{&lt;br /&gt;  &lt;br /&gt;  BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("Enter length of rectangle : ");&lt;br /&gt;  l = Integer.parseInt(br1.readLine());&lt;br /&gt;  System.out.println("Enter width of rectangle : ");&lt;br /&gt;  w = Integer.parseInt(br1.readLine());&lt;br /&gt;  int area = l*w;&lt;br /&gt;  System.out.println("Area of Rectangle : "+area);&lt;br /&gt;  int perimiter = 2*(l+w);&lt;br /&gt;  System.out.println("Perimeter: " + perimiter);&lt;br /&gt;&lt;br /&gt;  }catch(Exception e){System.out.println("Error : "+e);}&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;Write a program to construct a triangle with the ?*?&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this section, you will learn how to constructing a shape of triangle by using "*".&lt;br /&gt;Write a program to construct a triangle with the ?*?&lt;br /&gt;         &lt;br /&gt;This lesson in Java programming will teach you the coding for constructing a shape of triangle by using '*'. First of all make a class named 'triangle' under the Java I/O package and as we have to use the Buffer class, the application of all try and catch block is important for avoiding any kind of error. After creating BufferedReader object and input stream reader define an integer 'a' and apply parseInt method for the conversion of string into integer. &lt;br /&gt;Now apply the for loop and define an integer 'i' and it should be either less than or equal to the integer "a" (the input number). Again define another integer type variable "j" in another for loop. Here in the second for loop "j" the number of times we have to print *. &lt;br /&gt;Now compile and run the program and insert any number on your command window and surely you will get a triangle shape with star *. You can take any other object instead of *. &lt;br /&gt;Here is the code of the program: &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;class triangle{&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;  try{&lt;br /&gt;  BufferedReader object = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("enter the number");&lt;br /&gt;  int a= Integer.parseInt(object.readLine());&lt;br /&gt;  for (int i=1; i&lt;a;i++ ){&lt;br /&gt;  for (int j=1; j&lt;=i;j++ ){&lt;br /&gt;  System.out.print("*");&lt;br /&gt;  }&lt;br /&gt;  System.out.println("");&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  catch(Exception e){}&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Checking whether a year is leap or not&lt;br /&gt;Posted on: February 11, 2008 at 12:00 AM &lt;br /&gt;This tutorial is going to teach you the coding for checking whether a year is a leap year or not.&lt;br /&gt;Checking whether a year is leap or not&lt;br /&gt;         &lt;br /&gt;This tutorial is going to teach you the coding for checking whether a year is a leap year or not. Here, we have taken the year 2000. So define an integer n=2000 in the class "Leapyear" and now apply "if else" condition. As we know leap year is divided by the integer 4 and so applying if condition as n/4=0, then "n" is a leap year. Now in the System.out.println write the message that the year is a leap year. Again applying "else" condition the output will be that the year is not a leap year.  &lt;br /&gt;  &lt;br /&gt;Here is the code of program:&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;class  Leapyear&lt;br /&gt;{&lt;br /&gt;  public static void main(String[] args) &lt;br /&gt;  {&lt;br /&gt;  int n=2000;&lt;br /&gt;  if (n%4==0){&lt;br /&gt;  System.out.println("The given year is a leap year");&lt;br /&gt;  }&lt;br /&gt;  else{&lt;br /&gt;  System.out.println("This is not a leap year");&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Listing out leap years between certain period&lt;br /&gt;Posted on: February 11, 2008 at 12:00 AM &lt;br /&gt;The programming lesson will teach you the coding for finding and listing out the leap years between two years.&lt;br /&gt;Listing out leap years between certain period&lt;br /&gt;         &lt;br /&gt;The programming lesson will teach you the coding for finding and listing out the leap years between two years. In the following example we have to find out the leap years between 1990 and 2006. First define the two years under a class "leapyears". Let i = 2006 and n=1990. Now with the help of for loop method initialize the year as n=1990 and n&lt;=i. Also apply the increment statement in the loop as we have to check one by one.  &lt;br /&gt;As we know a leap year is divisible by 4, define an integer l=n%4. So if 'n' is divisible by 4 or l=0, then the particular year can be a leap year. For checking this, apply the if statement and if this satisfies then, the year will be a leap year. For listing out each year write "+n" in the System.out.println.  &lt;br /&gt;Now compile and run the program in the command window and see the result. If you find any error, check the whole program and find out the   &lt;br /&gt;&lt;br /&gt;Here is the code of the program:&lt;br /&gt;class leapyears &lt;br /&gt;{&lt;br /&gt;  public static void main(String[] args) &lt;br /&gt;  {&lt;br /&gt;  int i=2006;&lt;br /&gt;  int n;&lt;br /&gt;  for (n=1990; n&lt;=i ; n++){&lt;br /&gt;  int l=n%4;&lt;br /&gt;  if (l==0){&lt;br /&gt;  System.out.println("leap year: "+n);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Preparing table of a number by using loop&lt;br /&gt;Posted on: February 11, 2008 at 12:00 AM &lt;br /&gt;This tutorial will teach you the methods of preparing the table of a given number by using loop condition.&lt;br /&gt;Preparing table of a number by using loop&lt;br /&gt;         &lt;br /&gt;This tutorial will teach you the methods of preparing the table of a given number by using loop condition. As we know the loop statements are used to repeat a statement or process multiple times according to a specified condition. Loop checks certain condition and if it finds the condition is valuable then all the statements written under loop are executed. &lt;br /&gt;Here we will take a number a=25 of which we have to prepare a table. Define the integer a=25 and b=1 as the initial point. Now apply "while" condition of loop and confine b&lt;=10 as we have to make a table of 25. Again define another integer as c=a*b, this will be the result when we multiply 'a' with 'b'. Here we have to multiply 'a' with 'b' up to 10 times like a*1, a*2....................a*9, a*10. So make define b=b+1 as increment operator. &lt;br /&gt;Now compile and run the program on the command window. &lt;br /&gt;Here is the code of the prorgram:&lt;br /&gt;class  PreparingTable{&lt;br /&gt;  public static void main(String[] args) {&lt;br /&gt;  int a=25, b=1;&lt;br /&gt;  System.out.println("the table of "+a+"= ");&lt;br /&gt;  while(b&lt;=10){&lt;br /&gt;  int c = a*b;&lt;br /&gt;  System.out.println(c);&lt;br /&gt;  b = b+1;&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Prime Number in Java&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this section, you will learn how to get prime number between 1 to given number.&lt;br /&gt;Prime Number in Java&lt;br /&gt;         &lt;br /&gt;This Java programming tutorial, we will be read how to get prime number between 1 to given number. First of all we have to define a class "PrimeNumber". Java I/O package has a input stream and a output stream in which input stream is used for reading the stream and memory allocating and the output stream used for writing bytes. As in this program we are going to insert certain instruction by creating buffer reader class. Here we have to create a buffer for the string class that can be used to instantiate a changeable object for storing and processing a string of character. Now use the ParseInt method for converting the parses the string argument and define 'num' as an integer.&lt;br /&gt;Now applying in this program we use two 'for' loop. For loop will start from 1 to entered number. And another loop will start and divide it from 2 to less than those number. If number is divided by any number that means it is not prime otherwise prime number.&lt;br /&gt;Here is the code of the Program&lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;class PrimeNumber {&lt;br /&gt;  public static void main(String[] args) throws Exception{&lt;br /&gt;  int i;&lt;br /&gt;  BufferedReader bf = new BufferedReader(&lt;br /&gt;  new InputStreamReader(System.in));&lt;br /&gt;  System.out.println("Enter number:");&lt;br /&gt;  int num = Integer.parseInt(bf.readLine());&lt;br /&gt;  System.out.println("Prime number: ");&lt;br /&gt;  for (i=1; i &lt; num; i++ ){&lt;br /&gt;  int j;&lt;br /&gt;  for (j=2; j&lt;i; j++){&lt;br /&gt;  int n = i%j;&lt;br /&gt;  if (n==0){&lt;br /&gt;  break;&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  if(i == j){&lt;br /&gt;  System.out.print("  "+i);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;OOPs and Its Concepts in Java&lt;br /&gt;Posted on: November 21, 2006 at 12:00 AM &lt;br /&gt;Object Oriented Programming or OOP is the technique to create programs based on the real world.&lt;br /&gt;OOPs and Its Concepts in Java&lt;br /&gt;         &lt;br /&gt;Brief Introduction to OOP&lt;br /&gt;Object Oriented Programming or OOP is the technique to create programs based on the real world. Unlike procedural programming, here in the OOP programming model programs are organized around objects and data rather than actions and logic. Objects represent some concepts or things and like any other objects in the real Objects in programming language have certain behavior, properties, type, and identity. In OOP based language the principal aim is to find out the objects to manipulate and their relation between each other. OOP offers greater flexibility and compatibility and is popular in developing larger application. Another important work in OOP is to classify objects into different types according to their properties and behavior. So OOP based software application development includes the analysis of the problem, preparing a solution, coding and finally its maintenance. &lt;br /&gt;Java is a object oriented programming  and to understand the functionality of OOP in Java, we first need to understand several fundamentals related to objects. These include class, method, inheritance, encapsulation, abstraction, polymorphism etc. &lt;br /&gt;Class - It is the central point of OOP and that contains data and codes with behavior. In Java everything happens within class and it describes a set of objects with common behavior. The class definition describes all the properties, behavior, and identity of objects present within that class. As far as types of classes are concerned, there are predefined classes in languages like C++ and Pascal. But in Java one can define his/her own types with data and code.   &lt;br /&gt;Object - Objects are the basic unit of object orientation with behavior, identity. As we mentioned above, these are part of a class but are not the same. An object is expressed by the variable and methods within the objects. Again these variables and methods are distinguished from each other as instant variables, instant methods and class variable and class methods. &lt;br /&gt;Methods -  We know that a class can define both attributes and behaviors. Again attributes are defined by variables and behaviors are represented by methods. In other words, methods define the abilities of an object. &lt;br /&gt;Inheritance - This is the mechanism of organizing and structuring software program. Though objects are distinguished from each other by some additional features but there are objects that share certain things common. In object oriented programming classes can inherit some common behavior and state from others. Inheritance in OOP allows to define a general class and later to organize some other classes simply adding some details with the old class definition. This saves work as the special class inherits all the properties of the old general class and as a programmer you only require the new features. This helps in a better data analysis, accurate coding and reduces development time. &lt;br /&gt;Abstraction - The process of abstraction in Java is used to hide certain details and only show the essential features of the object. In other words, it deals with the outside view of an object (interface). &lt;br /&gt;Encapsulation - This is an important programming concept that assists in separating an object's state from its behavior. This helps in hiding an object's data describing its state from any further modification by external component. In Java there are four different terms used for hiding data constructs and these are public, private, protected and package. As we know an object can associated with data with predefined classes and in any application an object can know about the data it needs to know about. So any unnecessary data are not required by an object can be hidden by this process. It can also be termed as information hiding that prohibits outsiders in seeing the inside of an object in which abstraction is implemented.  &lt;br /&gt;Polymorphism - It describes the ability of the object in belonging to different types with specific behavior of each type. So by using this, one object can be treated like another and in this way it can create and define multiple level of interface. Here the programmers need not have to know the exact type of object in advance and this is being implemented at runtime. &lt;br /&gt;Related Tags for OOPs and I&lt;br /&gt;Java Exception - Exception Handling in Java&lt;br /&gt;Posted on: June 5, 2007 at 12:00 AM &lt;br /&gt;In this section, you will learn to the exception handling.&lt;br /&gt;Java Exception - Exception Handling in Java&lt;br /&gt;         &lt;br /&gt;Exception, that means exceptional errors. Actually exceptions are used for handling errors in programs that occurs during the program execution. During the program execution if any error occurs and you want to print your own message or the system message about the error then you write the part of the program which generate the error in the try{} block and catch the errors using catch() block. Exception turns the direction of normal flow of the program control and send to the related catch() block. Error that occurs during the program execution generate a specific object which has the information about the errors occurred in the program.&lt;br /&gt;In the following example code you will see that how the exception handling can be done in java program. This example reads two integer numbers for the variables a and b. If you enter any other character except number ( 0 - 9 ) then the error is caught by NumberFormatException object. After that ex.getMessage() prints the information about the error occurring causes.&lt;br /&gt;Code of the program : &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class exceptionHandle{&lt;br /&gt;  public static void main(String[] args) throws Exception{&lt;br /&gt;  try{&lt;br /&gt;  int a,b;&lt;br /&gt;  BufferedReader in = &lt;br /&gt;  new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  a = Integer.parseInt(in.readLine());&lt;br /&gt;  b = Integer.parseInt(in.readLine());&lt;br /&gt;  }&lt;br /&gt;  catch(NumberFormatException ex){&lt;br /&gt;  System.out.println(ex.getMessage() &lt;br /&gt;  + " is not a numeric value.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Java - Identifier and primitive datatype in java&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this example you will learn what is identifier and primitive data type of a identifier. This tutorials will teach you how to use these identifier in you java programming.&lt;br /&gt;Java - Identifier and Primitive Data Types in java&lt;br /&gt;         &lt;br /&gt;In this example you will learn what is identifier and primitive data types of a identifier. This tutorials will teach you how to use these identifier in you  java programming. Identifier is is a simple variable name which is defined as the value container. The type of value stored by identifier is defined by the special java keyword is termed as primitive data type. &lt;br /&gt;In the given example there are some identifiers have been used like byteident, shortident, intident, longident, charident, stringident, floatident, doubleident. And there are some primitive data types of used identifiers have been also used in the program like byte, short, int, long, float, double, char and String.  &lt;br /&gt;All the data type has it's own capacity to keep the maximum value. Which have been mentioned below : &lt;br /&gt;Primitive Data Types &lt;br /&gt;Keyword	Description	Size/Format&lt;br /&gt;Integers&lt;br /&gt;byte	Byte-length integer	8-bit two's complement&lt;br /&gt;short	Short integer	16-bit two's complement&lt;br /&gt;int	Integer	32-bit two's complement&lt;br /&gt;long	Long integer	64-bit two's complement&lt;br /&gt;Real numbers&lt;br /&gt;float	Single-precision floating point	32-bit IEEE 754&lt;br /&gt;double	Double-precision floating point	64-bit IEEE 754&lt;br /&gt;Other types&lt;br /&gt;char	A single character	16-bit Unicode character&lt;br /&gt;boolean	A boolean value (true or false)	true or false&lt;br /&gt;Source: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html &lt;br /&gt;Code of the Program : &lt;br /&gt;public class identifierandpdatatype{&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  byte byteident = 3;&lt;br /&gt;  short shortident=100;&lt;br /&gt;  int intident = 10;&lt;br /&gt;  long longident = 40000;&lt;br /&gt;  char charident = 'a';&lt;br /&gt;  String stringident = "chandan";&lt;br /&gt;  float floatident = 12.0045f;&lt;br /&gt;  double doubleident = 2333333.000000000033343343434f;&lt;br /&gt;  System.out.println(byteident + " is the value of identifire &lt;br /&gt;named 'byteident' which primitive data type is byte.");&lt;br /&gt;  System.out.println(shortident + " is the value of &lt;br /&gt;identifire named 'shortident' which primitive data type is short.");&lt;br /&gt;  System.out.println(intident + " is the value &lt;br /&gt;of identifire named 'intident' which primitive data type is int.");&lt;br /&gt;  System.out.println(longident + " is the value &lt;br /&gt;of identifire named 'longident' which primitive data type is long.");&lt;br /&gt;  System.out.println(charident + " is the value &lt;br /&gt;of identifire named 'charident' which primitive data type is char.");&lt;br /&gt;  System.out.println(stringident + " is the value&lt;br /&gt; of identifire named 'stringident' which primitive data type is string.");&lt;br /&gt;  System.out.println(floatident + " is the value &lt;br /&gt;of identifire named 'floatident' which primitive data type is float.");&lt;br /&gt;  System.out.println(doubleident + " is the value&lt;br /&gt; of identifire named 'doubleident' which primitive data type is double.");&lt;br /&gt;  }&lt;br /&gt;} &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java - Variable, Constant and Literal in Java&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this example you will see that how you can use variables, constants and literals in your program easily.&lt;br /&gt;Java - Variable, Constant and Literal in Java&lt;br /&gt;         &lt;br /&gt;In this example you will see that how you can use variables, constants and literals in your program easily.&lt;br /&gt;Variable : You can assign the values to the variable once it has been declared. The values of the variable can be changed anywhere in the program if the variable is accessible in that scope. In this example we have used the variable  intvariable to illustrate this.&lt;br /&gt;Constants: Constants are declared using the final keyword. The values of the constant can't be changed once its declared.&lt;br /&gt;Literal : literal is an explicit number or string constant used in Java programs. This specifies the syntax of your declaration of different types of values and operations. That mean literal is totally based on the syntax. Whenever you want to show the message with java special symbols then you have to use the literals. For example to show the message "Directory of this file : c:\code\varconstltr.java" then you can write as shown below&lt;br /&gt;System.out.println("Directory of this file : c:\\code\\varconstltr.java");&lt;br /&gt;There are three type of literals : Numeric Literals, Char type Literals, String Literals as follows.&lt;br /&gt;Code of the Program : &lt;br /&gt;public class varconstltr{&lt;br /&gt;  public static final int constint=5;&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  int intvariable;&lt;br /&gt;    for (int i = 0;i &lt;= 10;i++){&lt;br /&gt;  intvariable = i;&lt;br /&gt;  System.out.println("All the values are : \n intvariable = " &lt;br /&gt;+ intvariable + "\nconstint = " + constint);&lt;br /&gt;  }&lt;br /&gt;  System.out.println("Directory of this file : c:\\code\\varconstltr.java");&lt;br /&gt;  }&lt;br /&gt;} &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java Read File Line by Line - Java Tutorial&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In the section of Java Tutorial you will learn how to write java program to read file line by line. We will use the DataInputStream class to Read text File Line by Line.&lt;br /&gt;Java Read File Line by Line - Java Tutorial&lt;br /&gt;         &lt;br /&gt;In the section of Java Tutorial you will learn how to write java program to read file line by line. We will use the DataInputStream class to Read text File Line by Line.&lt;br /&gt;Class DataInputStream&lt;br /&gt;A data input stream is use to read primitive Java data types from an underlying input stream in a machine-independent way. An application uses a data output stream to write data that can later be read by a data input stream.&lt;br /&gt;Data input streams and data output streams represent Unicode strings in a format that is a slight modification of UTF-8. (For more information, see X/Open Company Ltd., "File System Safe UCS Transformation Format (FSS_UTF)", X/Open Preliminary Specification, Document Number: P316. This information also appears in ISO/IEC 10646, Annex P.) Note that in the following tables, the most significant bit appears in the far left-hand column.&lt;br /&gt;BufferedReader&lt;br /&gt;Read text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.&lt;br /&gt;The buffer size may be specified, or the default size may be used. The default is large enough for most purposes.&lt;br /&gt;In general, each read request made of a Reader causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders. For example,&lt;br /&gt; BufferedReader in&lt;br /&gt;   = new BufferedReader(new FileReader("foo.in"));&lt;br /&gt; &lt;br /&gt;will buffer the input from the specified file. Without buffering, each invocation of read() or readLine() could cause bytes to be read from the file, converted into characters, and then returned, which can be very inefficient. &lt;br /&gt;Programs that use DataInputStreams for textual input can be localized by replacing each DataInputStream with an appropriate BufferedReader.&lt;br /&gt;Here is the code of java program to Read text File Line by Line:&lt;br /&gt;import java.io.*;&lt;br /&gt;class FileRead &lt;br /&gt;{&lt;br /&gt; public static void main(String args[])&lt;br /&gt;  {&lt;br /&gt;  try{&lt;br /&gt;  // Open the file that is the first &lt;br /&gt;  // command line parameter&lt;br /&gt;  FileInputStream fstream = new FileInputStream("textfile.txt");&lt;br /&gt;  // Get the object of DataInputStream&lt;br /&gt;  DataInputStream in = new DataInputStream(fstream);&lt;br /&gt;  BufferedReader br = new BufferedReader(new InputStreamReader(in));&lt;br /&gt;  String strLine;&lt;br /&gt;  //Read File Line By Line&lt;br /&gt;  while ((strLine = br.readLine()) != null)   {&lt;br /&gt;  // Print the content on the console&lt;br /&gt;  System.out.println (strLine);&lt;br /&gt;  }&lt;br /&gt;  //Close the input stream&lt;br /&gt;  in.close();&lt;br /&gt;    }catch (Exception e){//Catch exception if any&lt;br /&gt;  System.err.println("Error: " + e.getMessage());&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java - Copying one file to another&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this section, you will learn how to copy contents from one file to another file.&lt;br /&gt;Java - Copying one file to another&lt;br /&gt;         &lt;br /&gt;This example illustrates how to copy contents from one file to another file. This topic is related to the I/O (input/output) of java.io package.&lt;br /&gt;In this example we are using File class of java.io package. The File class is an abstract representation of file and directory pathnames. This class is an abstract, system-independent view of hierarchical pathnames. An abstract pathname has two components:&lt;br /&gt;1.	An optional system-dependent prefix string,&lt;br /&gt;such as a disk-drive specifier, "/" for the UNIX root directory, or "\\" for a Win32 UNC pathname, and&lt;br /&gt;2.	A sequence of zero or more string names.&lt;br /&gt;Explanation&lt;br /&gt;This program copies one file to another file. We will be declaring a function called copyfile which copies the contents from one specified file to another specified file.&lt;br /&gt;copyfile(String srFile, String dtFile)&lt;br /&gt;The function copyfile(String srFile, String dtFile) takes both file name as parameter. The function creates a new File instance for the file name passed as parameter&lt;br /&gt;File f1 = new File(srFile);&lt;br /&gt;File f2 = new File(dtFile); &lt;br /&gt;and creates another InputStream instance for the input object and OutputStream instance for the output object passed as parameter&lt;br /&gt;InputStream in = new FileInputStream(f1);&lt;br /&gt;OutputStream out = new FileOutputStream(f2); &lt;br /&gt;and then create a byte type buffer for buffering the contents of one file and write to another specified file from the first one specified file.&lt;br /&gt;// For creating a byte type buffer&lt;br /&gt;byte[] buf = new byte[1024];&lt;br /&gt;// For writing to another specified file from buffer buf&lt;br /&gt;out.write(buf, 0, len);&lt;br /&gt;Code of the Program : &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class CopyFile{&lt;br /&gt;  private static void copyfile(String srFile, String dtFile){&lt;br /&gt;  try{&lt;br /&gt;  File f1 = new File(srFile);&lt;br /&gt;  File f2 = new File(dtFile);&lt;br /&gt;  InputStream in = new FileInputStream(f1);&lt;br /&gt;  &lt;br /&gt;  //For Append the file.&lt;br /&gt;//  OutputStream out = new FileOutputStream(f2,true);&lt;br /&gt;&lt;br /&gt;  //For Overwrite the file.&lt;br /&gt;  OutputStream out = new FileOutputStream(f2);&lt;br /&gt;&lt;br /&gt;  byte[] buf = new byte[1024];&lt;br /&gt;  int len;&lt;br /&gt;  while ((len = in.read(buf)) &gt; 0){&lt;br /&gt;  out.write(buf, 0, len);&lt;br /&gt;  }&lt;br /&gt;  in.close();&lt;br /&gt;  out.close();&lt;br /&gt;  System.out.println("File copied.");&lt;br /&gt;  }&lt;br /&gt;  catch(FileNotFoundException ex){&lt;br /&gt;  System.out.println(ex.getMessage() + " in the specified directory.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  catch(IOException e){&lt;br /&gt;  System.out.println(e.getMessage());  &lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  switch(args.length){&lt;br /&gt;  case 0: System.out.println("File has not mentioned.");&lt;br /&gt;    System.exit(0);&lt;br /&gt;  case 1: System.out.println("Destination file has not mentioned.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  case 2: copyfile(args[0],args[1]);&lt;br /&gt;  System.exit(0);&lt;br /&gt;  default : System.out.println("Multiple files are not allow.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java Write To File - Java Tutorial&lt;br /&gt;Posted on: June 5, 2007 at 12:00 AM &lt;br /&gt;In the section of Java Tutorial you will learn how to write java program to write to a file.&lt;br /&gt;Java Write To File - Java Tutorial&lt;br /&gt;         &lt;br /&gt;In the section of Java Tutorial you will learn how to write java program to write to a file. We will use the class FileWriter and BufferedWriter to write to a file.&lt;br /&gt;Class FileWriter&lt;br /&gt;The FileWriter is a class used for writing character files. The constructors of this class assume that the default character encoding and the default byte-buffer size are acceptable. To specify these values yourself, construct an OutputStreamWriter on a FileOutputStream.&lt;br /&gt;&lt;br /&gt;BufferedWriter&lt;br /&gt;The BufferWriter class is used to write text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.&lt;br /&gt;&lt;br /&gt;Here is the code of java program to write text to a file:&lt;br /&gt;import java.io.*;&lt;br /&gt;class FileWrite &lt;br /&gt;{&lt;br /&gt; public static void main(String args[])&lt;br /&gt;  {&lt;br /&gt;  try{&lt;br /&gt;  // Create file &lt;br /&gt;  FileWriter fstream = new FileWriter("out.txt");&lt;br /&gt;  BufferedWriter out = new BufferedWriter(fstream);&lt;br /&gt;  out.write("Hello Java");&lt;br /&gt;  //Close the output stream&lt;br /&gt;  out.close();&lt;br /&gt;  }catch (Exception e){//Catch exception if any&lt;br /&gt;  System.err.println("Error: " + e.getMessage());&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java Create Directory - Java Tutorial&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In the section of Java Tutorial you will learn how to create directory using java program.&lt;br /&gt;Java Create Directory - Java Tutorial&lt;br /&gt;         &lt;br /&gt;In the section of Java Tutorial you will learn how to create directory using java program. This program also explains the process of creating all non-existent ancestor directories automatically. We will use the class File class to crate the directory.&lt;br /&gt;Class File&lt;br /&gt;The File class an abstract representation of file and directory pathnames. File class is used to interact with the files system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is the code for creating directory and all non-existing ancestor directories: &lt;br /&gt;import java.io.*;&lt;br /&gt;class CreateDirectory &lt;br /&gt;{&lt;br /&gt; public static void main(String args[])&lt;br /&gt;  {&lt;br /&gt;  try{&lt;br /&gt;  String strDirectoy ="test";&lt;br /&gt;  String strManyDirectories="dir1/dir2/dir3";&lt;br /&gt;&lt;br /&gt;  // Create one directory&lt;br /&gt;  boolean success = (&lt;br /&gt;  new File(strDirectoy)).mkdir();&lt;br /&gt;  if (success) {&lt;br /&gt;  System.out.println("Directory: " &lt;br /&gt;   + strDirectoy + " created");&lt;br /&gt;  }  &lt;br /&gt;  // Create multiple directories&lt;br /&gt;  success = (new File(strManyDirectories)).mkdirs();&lt;br /&gt;  if (success) {&lt;br /&gt;  System.out.println("Directories: " &lt;br /&gt;   + strManyDirectories + " created");&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  }catch (Exception e){//Catch exception if any&lt;br /&gt;  System.err.println("Error: " + e.getMessage());&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Java - Deleting the file or Directory&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;This example illustrates how to delete the specified file or directory after checking weather the file exists or not.&lt;br /&gt;Java - Deleting the file or Directory&lt;br /&gt;         &lt;br /&gt;This example illustrates how to delete the specified file or directory after checking weather the file exists or not. This topic is related to the I/O (input/output) of java.io package.&lt;br /&gt;In this example we are using File class of java.io package. The File class is an abstract representation of file and directory pathnames. &lt;br /&gt;Explanation&lt;br /&gt;This program deletes the specified file if that exists. We will be declaring a function called deletefile which deletes the specified directory or file.&lt;br /&gt;deletefile(String file)&lt;br /&gt;The function deletefile(String file) takes file name as parameter. The function creates a new File instance for the file name passed as parameter&lt;br /&gt;File f1 = new File(file);&lt;br /&gt;and delete the file using delete function f1.delete(); which return the Boolean value (true/false). It returns true if and only if the file or directory is successfully deleted; false otherwise.&lt;br /&gt;delete()&lt;br /&gt;Deletes the file or directory denoted by this abstract pathname. If this pathname denotes a directory, then the directory must be empty in order to be deleted. &lt;br /&gt;Returns: &lt;br /&gt;true if and only if the file or directory is successfully deleted; false otherwise &lt;br /&gt;Code of the Program : &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class DeleteFile{&lt;br /&gt;  private static void deletefile(String file){&lt;br /&gt;  File f1 = new File(file);&lt;br /&gt;  boolean success = f1.delete();&lt;br /&gt;  if (!success){&lt;br /&gt;  System.out.println("Deletion failed.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }else{&lt;br /&gt;  System.out.println("File deleted.");&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  switch(args.length){&lt;br /&gt;  case 0: System.out.println("File has not mentioned.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  case 1: deletefile(args[0]);&lt;br /&gt;  System.exit(0);&lt;br /&gt;  default : System.out.println("Multiple files are not allow.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java Directory - Directory and File Listing Example in Java&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this section,you will learn how to list files and folders present in the specified directory.&lt;br /&gt;Java Directory - Directory and File Listing Example in Java&lt;br /&gt;         &lt;br /&gt;This example illustrates how to list files and folders present in the specified directory. This topic is related to the I/O (input/output) of java.io package.&lt;br /&gt;In this example we are using File class of java.io package. The File class is an abstract representation of file and directory pathnames. This class is an abstract, system-independent view of hierarchical pathnames. An abstract pathname has two components:&lt;br /&gt;1.	An optional system-dependent prefix string,&lt;br /&gt;such as a disk-drive specifier, "/" for the UNIX root directory, or "\\" for a Win32 UNC pathname, and&lt;br /&gt;2.	A sequence of zero or more string names.&lt;br /&gt;Explanation&lt;br /&gt;This program list the file of the specified directory. We will be declaring a function called dirlist which lists the contents present in the specified directory.&lt;br /&gt;dirlist(String fname)&lt;br /&gt;The function dirlist(String fname) takes directory name as parameter. The function creates a new File instance for the directory name passed as parameter&lt;br /&gt;File dir = new File(fname);  &lt;br /&gt;and retrieves the list of all the files and folders present in the directory by calling list() method on it. &lt;br /&gt;String[] chld = dir.list();  &lt;br /&gt;Then it prints the name of files and folders present in the directory.&lt;br /&gt;Code of the Program : &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class  DirListing{&lt;br /&gt;  private static void dirlist(String fname){&lt;br /&gt;  File dir = new File(fname);&lt;br /&gt;    String[] chld = dir.list();&lt;br /&gt;  if(chld == null){&lt;br /&gt;  System.out.println("Specified directory does not exist or is not a directory.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;    }else{&lt;br /&gt;  for(int i = 0; i &lt; chld.length; i++){&lt;br /&gt;  String fileName = chld[i];&lt;br /&gt;  System.out.println(fileName);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  switch(args.length){&lt;br /&gt;  case 0: System.out.println("Directory has not mentioned.");&lt;br /&gt;  System.exit(0);&lt;br /&gt;  case 1: dirlist(args[0]);&lt;br /&gt;  System.exit(0);&lt;br /&gt;  default : System.out.println("Multiple files are not allow.");&lt;br /&gt;    System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java - Applet Hello World&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;This example introduces you with the Applet in Java. You will learn how to develop applet code and run in the browser.&lt;br /&gt;Java - Applet Hello World&lt;br /&gt;         &lt;br /&gt;This example introduces you with the Applet in Java. You will learn how to develop applet code and run in the browser.&lt;br /&gt;Applet is a program provided by java which is designed for execution within the web browser. Applets are mostly used for a small internet and intranet applications because of small size and it's compatibility among almost all web browsers. Applets are also very secure.  For example, Applets can be used to serve animated graphics on the web.&lt;br /&gt;This example creates a simple applet that displays Hello World message.&lt;br /&gt;import java.applet.Applet;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;&lt;br /&gt;public class HelloWorldApplet extends Applet{&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;  Frame frame = new Frame("Roseindia.net");&lt;br /&gt;  frame.setSize(400,200);&lt;br /&gt;  Applet app = new HelloWorldApplet();&lt;br /&gt;  frame.add(app);&lt;br /&gt;  frame.setVisible(true);&lt;br /&gt;  frame.addWindowListener(new WindowAdapter(){&lt;br /&gt;  public void windowClosing(WindowEvent e){&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  });&lt;br /&gt;  }&lt;br /&gt;  public void paint(Graphics g){&lt;br /&gt;  g.drawString("Hello World!",200,100);&lt;br /&gt;  }&lt;br /&gt;} &lt;br /&gt;Compiling Applets:&lt;br /&gt;javac HelloWorldApplet.java&lt;br /&gt;Running Applet from console:&lt;br /&gt;java HelloWorldApplet&lt;br /&gt;Running Applet from Web browser:&lt;br /&gt;Running applet in browser is very easy job, create an html file with the following code:&lt;br /&gt;&lt;html&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;&lt;title&gt;A Simple Applet program&lt;/title&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;&lt;APPLET CODE="HelloWorldApplet.class" WIDTH=700 HEIGHT=500&gt;&lt;br /&gt;&lt;/APPLET&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt; &lt;br /&gt;The Applet tag in html is used to embed an applet in the web page. &lt;br /&gt;&lt;br /&gt;&lt;APPLET CODE="HelloWorldApplet.class" WIDTH=700 HEIGHT=500&gt;&lt;br /&gt;&lt;br /&gt;CODE tag is used to specify the name of Java applet class name. To test your applet open the html file in web browser. You browser should display applet. You can also try this applet online by clicking on the following link.&lt;br /&gt;Java Word Count - Word Count Example in Java&lt;br /&gt;Posted on: February 11, 2008 at 12:00 AM &lt;br /&gt;This example illustrates how to count the number of lines, number of words and number of characters in the specified file.&lt;br /&gt;Java Word Count - Word Count Example in Java&lt;br /&gt;         &lt;br /&gt;This example illustrates how to count the number of lines, number of words and number of characters in the specified file. Program takes the file name as parameter and it counts the number of words and lines present in the file. Parameter is optional and if you simply run the program without mentioning the file name then you will have to input some strings and program will count the number of characters and number of words for your given strings. This topic is related to the I/O (input/output) of java.io package.&lt;br /&gt;In this example we are using FileReader class of java.io package. The File class is an abstract representation of file and directory pathnames. &lt;br /&gt;Explanation&lt;br /&gt;This program counts the number of lines, number of words and number of characters in the specified file. We will be declaring two functions called wordcount and linecount in the program. The function linecount has been overloaded according to the passing argument. If you input contents through the file then linecount function will be called (If specified file exists) otherwise main function counts the number of characters and number of lines (always, the number of line will be only 1 in this condition) itself but for the counting of the number of words by using the wordcount function.&lt;br /&gt;wordcount(String line)&lt;br /&gt;The function wordcount(String line) takes either the content of the specified file or arguments passed with the run command for a java program as parameter 'String line'. The wordcount() function is using arrayname.charAt(index) to find position of space in the string.  A counter variable 'numWords' is used to count the number of words.&lt;br /&gt;linecount(String fileName);&lt;br /&gt;The function linecount(String fileName) takes the specified file name as a string parameter and create a instance for the FileReader class to buffering then the file or string and it is passed to the function linecount(String fName, BufferedReader in).&lt;br /&gt;linecount(String fileName, BufferedReader);&lt;br /&gt;The function linecount(String fName, BufferedReader in) takes the specified file name and created instance in for the BufferedReader class by calling function linecount(String fileName) and assign the content of the buffer in a string variable line. And then the function linecount(String fileName, BufferedReader) counts and print the number of characters, number of lines. To count the number of words call the wordcount(String line) function.&lt;br /&gt;Code of the Program : &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class  WordCount{&lt;br /&gt;  private static void linecount(String fName, BufferedReader in) &lt;br /&gt;  throws IOException{&lt;br /&gt;  long numChar = 0;&lt;br /&gt;  long numLine=0;&lt;br /&gt;  long numWords = 0;&lt;br /&gt;  String line;&lt;br /&gt;  do{&lt;br /&gt;  line = in.readLine();&lt;br /&gt;  if (line != null){&lt;br /&gt;  numChar += line.length();&lt;br /&gt;  numWords += wordcount(line);&lt;br /&gt;  numLine++;&lt;br /&gt;  }&lt;br /&gt;  }while(line != null);&lt;br /&gt;  System.out.println("File Name: " + fName);&lt;br /&gt;  System.out.println("Number of characters: " + numChar);&lt;br /&gt;  System.out.println("Number of words: " + numWords);&lt;br /&gt;  System.out.println("Number of Lines: " + numLine);&lt;br /&gt;  }&lt;br /&gt;  private static void linecount(String fileName){&lt;br /&gt;  BufferedReader in = null;&lt;br /&gt;  try{&lt;br /&gt;  FileReader fileReader = new FileReader(fileName);&lt;br /&gt;  in = new BufferedReader(fileReader);&lt;br /&gt;  linecount(fileName,in);&lt;br /&gt;  }&lt;br /&gt;  catch(IOException e){&lt;br /&gt;  e.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  private static long wordcount(String line){&lt;br /&gt;  long numWords = 0;&lt;br /&gt;  int index = 0;&lt;br /&gt;  boolean prevWhiteSpace = true;&lt;br /&gt;  while(index &lt; line.length()){&lt;br /&gt;  char c = line.charAt(index++);&lt;br /&gt;  boolean currWhiteSpace = Character.isWhitespace(c);&lt;br /&gt;  if(prevWhiteSpace &amp;&amp; !currWhiteSpace){&lt;br /&gt;  numWords++;&lt;br /&gt;  }&lt;br /&gt;  prevWhiteSpace = currWhiteSpace;&lt;br /&gt;  }&lt;br /&gt;  return numWords;&lt;br /&gt;  }&lt;br /&gt;  public static void main(String[] args){&lt;br /&gt;    long numChar = 0;&lt;br /&gt;  long numLine=0;&lt;br /&gt;  String line;&lt;br /&gt;  try{&lt;br /&gt;  if (args.length == 0)&lt;br /&gt;  {&lt;br /&gt;  BufferedReader in = &lt;br /&gt;  new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  line = in.readLine();&lt;br /&gt;  numChar = line.length();&lt;br /&gt;  if (numChar != 0){&lt;br /&gt;  numLine=1;&lt;br /&gt;  }&lt;br /&gt;  System.out.println("Number of characters: " + numChar);&lt;br /&gt;  System.out.println("Number of words: " + wordcount(line));&lt;br /&gt;  System.out.println("Number of lines: " + numLine);&lt;br /&gt;  }else{&lt;br /&gt;  for(int i = 0; i &lt; args.length; i++){&lt;br /&gt;  linecount(args[i]);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;  catch(IOException e){&lt;br /&gt;  e.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Java - Boolean Expression and Operation in Java&lt;br /&gt;Posted on: June 4, 2007 at 12:00 AM &lt;br /&gt;In this example you will see that how the expression returns a boolean value which is either true or false.&lt;br /&gt;Java - Boolean Expression and Operation in Java&lt;br /&gt;         &lt;br /&gt;Boolean expression performs the relational or logical operations and returns the boolean value (True/False).&lt;br /&gt;In this example you will see that how the expression returns a boolean value which is either true or false. This example illustrates you how to make a boolean expression by using relational operators and how to use the returned value of the expression.&lt;br /&gt;This program reads two int type value and print the message with the returned boolean value for the boolean expression in which many types of relational operators are used.&lt;br /&gt;Code of the program : &lt;br /&gt;import java.io.*;&lt;br /&gt;&lt;br /&gt;public class booleanOperation{&lt;br /&gt;  public static void main(String[] args) throws Exception{&lt;br /&gt;  try{&lt;br /&gt;  int a;&lt;br /&gt;    int b;&lt;br /&gt;  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;  a = Integer.parseInt(in.readLine());&lt;br /&gt;  b = Integer.parseInt(in.readLine());&lt;br /&gt;  System.out.println("a = " + a + "and\nb = " + b);&lt;br /&gt;  System.out.println(a + " is greater than " + b + " : " + (a &gt; b));&lt;br /&gt;  System.out.println(a + " is less than " + b + " : " + (a &lt; b));&lt;br /&gt;  System.out.println(a + " is equal to " + b + " : " + (a == b));&lt;br /&gt;  System.out.println(a + " is greater or equal to " + b + " : " + (a &gt;= b));&lt;br /&gt;  System.out.println(a + " is less than or equal to " + b + " : " + (a &lt;= b));&lt;br /&gt;  System.out.println(a + " is not equal to " + b + " : " + (a != b));&lt;br /&gt;  System.out.println(a + " is equal to " + b + " : " + (a == b));&lt;br /&gt;  }&lt;br /&gt;  catch(IOException e){&lt;br /&gt;  System.out.println(e.getMessage());&lt;br /&gt;  System.exit(0);&lt;br /&gt;  }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Method): Write a method called reverseArray() with the following signature:&lt;br /&gt;&lt;br /&gt;public static void reverseArray(int[] intArray)&lt;br /&gt;&lt;br /&gt;The method accepts an int array, and reverses its orders. For example, if the input array is {12, 56, 34, 79, 26}, the reversal is {26, 79, 34, 56, 12}. You MUST NOT use another array in your method (but you need a temporary variable to do the swap). Also write a test class called ReverseArrayTest to test this method. Take note that the array passed into the method can be modified by the method (this is called "pass by reference"). On the other hand, primitives passed into a method cannot be modified. This is because a clone is created and passed into the method instead of the original copy (this is called "pass by value").&lt;br /&gt;More Basic Java Exercises&lt;br /&gt;&lt;br /&gt;Exercise (JDK Source Code): Extract the source code of the class Math from the JDK source code ("$JAVA_HOME" ⇒ "src.zip" ⇒ "Math.java" under folder "java.lang"). Study how constants such as E and PI are defined. Also study how methods such as abs(), max(), min(), toDegree(), etc, are written.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Matrix Operation): Similar to Math class, write a Matrix library that supports matrix operations (such as addition, subtraction, multiplication) via 2D arrays. The operations shall support both doubles and ints. Also write a test class to exercise all the operations programmed.&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class Matrix {&lt;br /&gt;public static void printMatrix(int[][] m) { ...... }&lt;br /&gt;public static void printMatrix(double[][] m) { ...... }&lt;br /&gt;public static boolean haveSameDimension(int[][] m1, int[][] m2) { ...... }&lt;br /&gt;public static boolean haveSameDimension(double[][] m1, double[][] m2) { ...... }&lt;br /&gt;public static int[][] add(int[][] m1, int[][] m2) { ...... }&lt;br /&gt;public static double[][] add(double[][] m1, double[][] m2) { ...... }&lt;br /&gt;......&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Special Characters and Escape Sequences): Write a program called PrintAnimalPattern, which uses println() to produce this pattern:&lt;br /&gt;&lt;br /&gt;'__'&lt;br /&gt;(©©)&lt;br /&gt;/========\/&lt;br /&gt;/ || %% ||&lt;br /&gt;* ||----||&lt;br /&gt;¥¥ ¥¥&lt;br /&gt;"" ""&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;* Use escape sequence \uhhhh where hhhh are four hex digits to display Unicode characters such as ¥ and ©. ¥ is 165 (00A5H) and © is 169 (00A9H) in both ISO-8859-1 (Latin-1) and Unicode character sets.&lt;br /&gt;* Double-quote (") and black-slash (\) require escape sign inside a String. Single quote (') does not require escape sign.&lt;br /&gt;&lt;br /&gt;Print the same pattern using printf(). Hints: Need to use %% to print a % in printf() because % is the suffix for format specifier.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Print Pattern using nested-loop): Write a method to print each of the followings patterns using nested loops in a class called PrintPattern. The signatures of the methods are:&lt;br /&gt;&lt;br /&gt;public static void printPatternX(int size) // 'X' from 'A' to ..., size is a positive integer.&lt;br /&gt;&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # #&lt;br /&gt;(a) (b) (c) (d)&lt;br /&gt;&lt;br /&gt;Hints: On the diagonal, row = col. On the opposite diagonal, row + col = size + 1.&lt;br /&gt;&lt;br /&gt;# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # #&lt;br /&gt;# # # # # # # # # #&lt;br /&gt;# # # # # # # #&lt;br /&gt;# # # # # # # # # #&lt;br /&gt;# # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #&lt;br /&gt;(e) (f) (g) (h) (i)&lt;br /&gt;&lt;br /&gt;# # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # # # # #&lt;br /&gt;# # # # # # # # # # # # # # # # # # # # # # #&lt;br /&gt;(j) (k) # # # # # # # # #&lt;br /&gt;# # # # # # #&lt;br /&gt;# # # # #&lt;br /&gt;# # #&lt;br /&gt;#&lt;br /&gt;(l)&lt;br /&gt;&lt;br /&gt;1 1 2 3 4 5 6 7 8 1 8 7 6 5 4 3 2 1&lt;br /&gt;1 2 1 2 3 4 5 6 7 2 1 7 6 5 4 3 2 1&lt;br /&gt;1 2 3 1 2 3 4 5 6 3 2 1 6 5 4 3 2 1&lt;br /&gt;1 2 3 4 1 2 3 4 5 4 3 2 1 5 4 3 2 1&lt;br /&gt;1 2 3 4 5 1 2 3 4 5 4 3 2 1 4 3 2 1&lt;br /&gt;1 2 3 4 5 6 1 2 3 6 5 4 3 2 1 3 2 1&lt;br /&gt;1 2 3 4 5 6 7 1 2 7 6 5 4 3 2 1 2 1&lt;br /&gt;1 2 3 4 5 6 7 8 1 8 7 6 5 4 3 2 1 1&lt;br /&gt;(m) (n) (o) (p)&lt;br /&gt;&lt;br /&gt;1 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1&lt;br /&gt;1 2 1 1 2 3 4 5 6 7 6 5 4 3 2 1&lt;br /&gt;1 2 3 2 1 1 2 3 4 5 6 5 4 3 2 1&lt;br /&gt;1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1&lt;br /&gt;1 2 3 4 5 4 3 2 1 1 2 3 4 3 2 1&lt;br /&gt;1 2 3 4 5 6 5 4 3 2 1 1 2 3 2 1&lt;br /&gt;1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 1&lt;br /&gt;1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 1&lt;br /&gt;(q) (r)&lt;br /&gt;&lt;br /&gt;1 1 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1&lt;br /&gt;1 2 2 1 1 2 3 4 5 6 7 7 6 5 4 3 2 1&lt;br /&gt;1 2 3 3 2 1 1 2 3 4 5 6 6 5 4 3 2 1&lt;br /&gt;1 2 3 4 4 3 2 1 1 2 3 4 5 5 4 3 2 1&lt;br /&gt;1 2 3 4 5 5 4 3 2 1 1 2 3 4 4 3 2 1&lt;br /&gt;1 2 3 4 5 6 6 5 4 3 2 1 1 2 3 3 2 1&lt;br /&gt;1 2 3 4 5 6 7 7 6 5 4 3 2 1 1 2 2 1&lt;br /&gt;1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 1 1&lt;br /&gt;(s) (t)&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2 3 2&lt;br /&gt;3 4 5 4 3&lt;br /&gt;4 5 6 7 6 5 4&lt;br /&gt;5 6 7 8 9 8 7 6 5&lt;br /&gt;6 7 8 9 0 1 0 9 8 7 6&lt;br /&gt;7 8 9 0 1 2 3 2 1 0 9 8 7 &lt;br /&gt;8 9 0 1 2 3 4 5 4 3 2 1 0 9 8&lt;br /&gt;(u)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Print Pattern using nested-loop): Write a method to print each of the following patterns using nested-loops in a class called PrintTriangle. The signatures of the methods are:&lt;br /&gt;&lt;br /&gt;public static void printXxx(int numRows) // Xxx is the pattern's name&lt;br /&gt;&lt;br /&gt;Write the main() which prompts the user for the numRows and prints all the patterns.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;1 2 1&lt;br /&gt;1 2 4 2 1&lt;br /&gt;1 2 4 8 4 2 1&lt;br /&gt;1 2 4 8 16 8 4 2 1&lt;br /&gt;1 2 4 8 16 32 16 8 4 2 1&lt;br /&gt;1 2 4 8 16 32 64 32 16 8 4 2 1&lt;br /&gt;1 2 4 8 16 32 64 128 64 32 16 8 4 2 1&lt;br /&gt;(a) PowerOf2Triangle&lt;br /&gt;&lt;br /&gt;1 1&lt;br /&gt;1 1 1 1&lt;br /&gt;1 2 1 1 2 1&lt;br /&gt;1 3 3 1 1 3 3 1&lt;br /&gt;1 4 6 4 1 1 4 6 4 1&lt;br /&gt;1 5 10 10 5 1 1 5 10 10 5 1&lt;br /&gt;1 6 15 20 15 6 1 1 6 15 20 15 6 1&lt;br /&gt;(b) PascalTriangle1 (c) PascalTriangle2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Series): Write a method to compute sin(x) and cos(x) using the following series expansion, in a class called TrigonometricSeries. The headers of the methods are:&lt;br /&gt;&lt;br /&gt;public static double sin(double x, int numTerms) // x in radians&lt;br /&gt;public static double cos(double x, int numTerms)&lt;br /&gt;&lt;br /&gt;Compare the values computed using the series with the JDK methods Math.sin(), Math.cos() at x=0, π/6, π/4, π/3, π/2 using various numbers of terms.&lt;br /&gt;&lt;br /&gt;Hints: Avoid generating large numerator and denominator (which may cause arithmetic overflow, e.g., 13! is out of int range). Compute the terms as:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Series): Write a method to compute the sum of the series in a class called Series. The signature of the method is:&lt;br /&gt;&lt;br /&gt;public static double sumOfSeries(double x, int numTerms)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Fibonacci Number &amp; Overflow) : Write a program called FibonacciInt to list all the Fibonacci numbers, which can be expressed as an int (i.e., 32-bit signed integer in the range of [-2147483648, 2147483647]). The output shall look like:&lt;br /&gt;&lt;br /&gt;F(0) = 1&lt;br /&gt;F(1) = 1&lt;br /&gt;F(2) = 2&lt;br /&gt;...&lt;br /&gt;F(45) = 1836311903&lt;br /&gt;F(46) is out of the range of int&lt;br /&gt;&lt;br /&gt;Hints: The maximum and minimum values of a 32-bit int are kept in constants Integer.MAX_VALUE and Integer.MIN_VALUE, respectively. Try these statements:&lt;br /&gt;&lt;br /&gt;System.out.println(Integer.MAX_VALUE);&lt;br /&gt;System.out.println(Integer.MIN_VALUE);&lt;br /&gt;System.out.println(Integer.MAX_VALUE + 1);&lt;br /&gt;&lt;br /&gt;Take note that in the third statement, Java Runtime does not flag out an overflow error, but silently wraps the number around. Hence, you cannot use F(n-1) + F(n-2) &gt; Integer.MAX_VALUE to check for overflow. Instead, overflow occurs for F(n) if (Integer.MAX_VALUE – F(n-1)) &lt; F(n-2) (i.e., no room for the next Fibonacci number). Write a similar program for Tribonacci numbers. Exercise (Factorial &amp; Overflow): Write a program called Factorial1to10, to compute the factorial of n, for 1≤n≤10. Your output shall look like: The factorial of 1 is 1 The factorial of 2 is 2 ... The factorial of 10 is 3628800 Modify your program (called FactorialInt), to list all the factorials, that can be expressed as an int (i.e., 32-bit signed integer). Your output shall look like: The factorial of 1 is 1 The factorial of 2 is 2 ... The factorial of 12 is 479001600 The factorial of 13 is out of range Hints: Overflow occurs for Factorial(n+1) if (Integer.MAX_VALUE / Factorial(n)) &lt; (n+1). Modify your program again (called FactorialLong) to list all the factorials that can be expressed as a long (64-bit signed integer). The maximum value for long is kept in a constant called Long.MAX_VALUE. Exercise (Number Systems Conversion): Write a method call toRadix() which converts a positive integer from one radix into another. The method has the following header: public static String toRadix(String in, int inRadix, int outRadix) // The input and output are treated as String. Write a program called NumberConvert, which prompts the user for an input number, an input radix, and an output radix, and display the converted number. The output shall look like: Enter a number and radix: A1B2 Enter the input radix: 16 Enter the output radix: 2 "A1B2" in radix 16 is "1010000110110010" in radix 2. Example: Java code to print prime numbers from 1 to 100 Answer: Improve import java.io.*; class prmNo { public static void main(String[] args) { Console con = System.console(); System.out.println("Enter length of list :"); int n = con.readLine(); boolean flag; System.out.print("1 "); for (int i=2;i&lt;=n;i++) { for (int j=2;j java NumberGuess&lt;br /&gt;Key in your guess:&lt;br /&gt;50&lt;br /&gt;Try higher&lt;br /&gt;70&lt;br /&gt;Try lower&lt;br /&gt;65&lt;br /&gt;Try lower&lt;br /&gt;"&lt;br /&gt;You got it in 4 trials!&lt;br /&gt;&lt;br /&gt;Hints: Use Math.random() to produce a random number in double between 0.0 and (less than) 1.0. To produce an int between 0 and 99, use:&lt;br /&gt;&lt;br /&gt;int secretNumber = (int)(Math.random()*100);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Guess a Word): Write a program called WordGuess to guess a word by trying to guess the individual characters. The word to be guessed shall be provided using the command-line argument. Your program shall look like:&lt;br /&gt;&lt;br /&gt;java WordGuess testing&lt;br /&gt;Key in one character or your guess word: t&lt;br /&gt;Trail 1: t__t___&lt;br /&gt;Key in one character or your guess word: g&lt;br /&gt;Trail 2: t__t__g&lt;br /&gt;Key in one character or your guess word: e&lt;br /&gt;Trail 3: te_t__g&lt;br /&gt;Key in one character or your guess word: testing&lt;br /&gt;Trail 4: Congratulation!&lt;br /&gt;You got in 4 trials&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;* Set up a boolean array to indicate the positions of the word that have been guessed correctly.&lt;br /&gt;* Check the length of the input String to determine whether the player enters a single character or a guessed word. If the player enters a single character, check it against the word to be guessed, and update the boolean array that keeping the result so far.&lt;br /&gt;* Try retrieving the word to be guessed from a text file (or a dictionary) randomly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Day of the Week): Write a program called DayOfWeek, which takes a date (in year, month and day), and returns the day of the week.&lt;br /&gt;&lt;br /&gt;There is an interesting algorithm for finding the day of week given year, month and day (e.g., 26-9-2010), as follows:&lt;br /&gt;&lt;br /&gt;1. Take the last two digit of the year, and add a quarter (divide by 4 and discard the remainder). In our example, 10 + 10/4 = 12&lt;br /&gt;2. Add a value according to the month as follow: Jan: 1, Feb: 4, Mar: 4, Apr: 0, May: 2, Jun: 5, Jul: 0, Aug: 3, Sep: 6, Oct: 1, Nov: 4, Dec: 6. For our example, 12 + 6 (Sep) = 18.&lt;br /&gt;3. Add the day. For our example, 18 + 26 = 44&lt;br /&gt;4. Add a century offset according to century value as follows: 18xx:2, 19xx: 0, 20xx: 6, 21xx: 4. For our example, 44 + 6 (20xx) = 50. For years outside this range, add or subtract 400 to bring the year into this range. This is based on the fact that the calendar repeats every 400 years.&lt;br /&gt;5. For leap year (a leap year is a year that is divisible by 4 and not divisible by 100, or divisible by 400), if month is Jan or Feb, subtract 1. For our example, 2010 is not a leap year.&lt;br /&gt;6. Take modulus 7, and retrieve the day of the week from the array {Sat, Sun, Mon, Tues, Wed, Thurs, Fir}. For our example, 50 % 7 = 1, which is a Sunday.&lt;br /&gt;&lt;br /&gt;You can compare the day obtain with the Java's Calendar output as follows:&lt;br /&gt;&lt;br /&gt;// Construct a Calendar with the given year, month and day&lt;br /&gt;Calendar cal = new GregorianCalendar(year, month - 1, day); // month is 0-based&lt;br /&gt;// Get the day of the week number: 1 (Sunday) to 7 (Saturday)&lt;br /&gt;int dayNumber = cal.get(Calendar.DAY_OF_WEEK);&lt;br /&gt;String[] calendarDays = { "Sunday", "Monday", "Tuesday", "Wednesday",&lt;br /&gt;"Thursday", "Friday", "Saturday" };&lt;br /&gt;// Print result&lt;br /&gt;System.out.println("It is " + calendarDays[dayNumber - 1]);&lt;br /&gt;&lt;br /&gt;This above algorithm work for Gregorian dates only. The calendar we used today is known as Gregorian calendar, which came into effect in October 15, 1582 in some countries and later in other countries. It replaces the Julian calendar. 10 days were removed from the calendar, i.e., October 4, 1582 (Julian) was followed by October 15, 1582 (Gregorian). The only difference between the Gregorian and the Julian calendar is the "leap-year rule". In Julian calendar, every four years is a leap year. In Gregorian calendar, a leap year is a year that is divisible by 4 but not divisible by 100, or it is divisible by 400, i.e., the Gregorian calendar omits century years which are not divisible by 400. Furthermore, Julian calendar considers the first day of the year as march 25th, instead of January 1st.&lt;br /&gt;&lt;br /&gt;It is difficult to modify the above algorithm to handle pre-Gregorian dates. A better algorithm is to find the number of days from a known date.&lt;br /&gt;Exercises on Number Theory&lt;br /&gt;&lt;br /&gt;Exercise (Perfect and Deficient Numbers): A positive integer is called a perfect number if the sum of all its factors (excluding the number itself, i.e., proper divisor) is equal to its value. For example, the number 6 is perfect because its proper divisors are 1, 2, and 3, and 6=1+2+3; but the number 10 is not perfect because its proper divisors are 1, 2, and 5, and 10≠1+2+5.&lt;br /&gt;&lt;br /&gt;A positive integer is called a deficient number if the sum of all its proper divisors is less than its value. For example, 10 is a deficient number because 1+2+5&lt;10; while 12 is not because 1+2+3+4+6&gt;12.&lt;br /&gt;&lt;br /&gt;Write a Java method called isPerfect(int posInt) that takes a positive integer, and return true if the number is perfect. Similarly, write a Java method called isDeficient(int posInt) to check for deficient numbers.&lt;br /&gt;&lt;br /&gt;Using the methods, write a program called PerfectNumberList that prompts user for an upper bound (a positive integer), and lists all the perfect numbers less than or equal to this upper bound. It shall also list all the numbers that are neither deficient nor perfect. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the upper bound: 1000&lt;br /&gt;These numbers are perfect:&lt;br /&gt;6 28 496&lt;br /&gt;[3 perfect numbers found (0.30%)]&lt;br /&gt;&lt;br /&gt;These numbers are neither deficient nor perfect:&lt;br /&gt;12 18 20 24 30 36 40 42 48 54 56 60 66 70 72 78 80 ......&lt;br /&gt;[246 numbers found (24.60%)]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Prime): A positive integer is a prime if it is divisible by 1 and itself only. Write a Java method called isPrime(int posInt) that takes a positive integer and returns true if the number is a prime. Write a Java program called PrimeList that prompts the user for an upper bound (a positive integer), and lists all the primes less than or equal to it. Also display the percentage of prime (up to 2 decimal places). The output shall look like:&lt;br /&gt;&lt;br /&gt;Please enter the upper bound: 10000&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;......&lt;br /&gt;......&lt;br /&gt;9967&lt;br /&gt;9973&lt;br /&gt;[1230 primes found (12.30%)]&lt;br /&gt;&lt;br /&gt;Hints: To check if a number n is a prime, the simplest way is try dividing n by 2 to √n.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise: Write a method isProductOfPrimeFactors(int posInt) that takes a positive integer, and return true if the product of all its prime factors (excluding 1 and the number itself) is equal to its value. For example, the method returns true for 30 (30=2×3×5) and false for 20 (20≠2×5). You may need to use the isPrime() method in the previous exercise.&lt;br /&gt;&lt;br /&gt;Write a program called PerfectPrimeFactorList that prompts user for an upper bound. The program shall display all the numbers (less than or equal to the upper bound) that meets the above criteria. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the upper bound: 100&lt;br /&gt;These numbers are equal to the product of prime factors: &lt;br /&gt;1 6 10 14 15 21 22 26 30 33 34 35 38 39 42 46 51 55 57 58 62 65 66 69 70 74 77 78 82 85 86 87 91 93 94 95 &lt;br /&gt;[36 numbers found (36.00%)]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (GCD): One of the earlier known algorithms is the Euclid algorithm to find the GCD of two integers (developed by the Greek Mathematician Euclid around 300BC). By definition, GCD(a, b) is the greatest factor that divides both a and b. Assume that a and b are positive integers, and a≥b, the Euclid algorithm is based on these two properties:&lt;br /&gt;&lt;br /&gt;GCD(a, 0) = a&lt;br /&gt;GCD(a, b) = GCD(b, a mod b), where (a mod b) denotes the remainder of a divides by b.&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;&lt;br /&gt;GCD(15, 5) = GCD(5, 0) = 5&lt;br /&gt;GCD(99,88) = GCD(88,11) = GCD(11,0) = 11&lt;br /&gt;GCD(3456,1233) = GCD(1233,990) = GCD(990,243) = GCD(243,18) = GCD(18,9) = GCD(9,0) = 9&lt;br /&gt;&lt;br /&gt;The pseudocode for the Euclid algorithm is as follows:&lt;br /&gt;&lt;br /&gt;GCD(a, b) // assume that a ≥ b&lt;br /&gt;while (b != 0) {&lt;br /&gt;// Change the value of a and b: a ← b, b ← a mod b, and repeat until b is 0&lt;br /&gt;temp ← b&lt;br /&gt;b ← a mod b&lt;br /&gt;a ← temp&lt;br /&gt;}&lt;br /&gt;// after the loop completes, i.e., b is 0, we have GCD(a, 0)&lt;br /&gt;GCD is a&lt;br /&gt;&lt;br /&gt;Write a method called gcd() with the following signature:&lt;br /&gt;&lt;br /&gt;public static int gcd(int a, int b)&lt;br /&gt;&lt;br /&gt;Your methods shall handle arbitrary values of a and b, and check for validity.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-4347387766455134880?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/4347387766455134880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2011/07/learn-java-and-teach-others.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/4347387766455134880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/4347387766455134880'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2011/07/learn-java-and-teach-others.html' title='LEARN JAVA AND TEACH OTHERS'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-5150233777198889792</id><published>2011-07-07T03:06:00.001+01:00</published><updated>2011-07-07T03:57:11.225+01:00</updated><title type='text'>LEARN JAVA PROGRAMMING</title><content type='html'>What is programming?&lt;br /&gt;Computer program is a set of instructions that guide a computer to execute a particular task. It is like a recipe for a cook in making a particular dish. The recipe contains a list of ingredients called the data or variables, and a list of steps that guide the computer what to do with the data. So programming is the technique of making a computer to perform something you want to do. &lt;br /&gt;Programming or coding is a language that is used by operating systems to perform the task. We know computer understands binary languages with digits 1s and 0s. These binary languages are difficult to understand by human; so we generally use an intermediate language instead of binary language. Again the program uses high-level language that is interpreted into bytes that the computer understands. So a programmer writes a source code and uses a tool or interpreter that allows the computer to read, translate and execute the programs to perform a function. &lt;br /&gt;What is Java, it?s history?&lt;br /&gt;Java is a high-level object-oriented programming language developed by the Sun Microsystems.&lt;br /&gt;What is Java, it’s history?&lt;br /&gt;Java is a high-level object-oriented programming language developed by the Sun Microsystems. Though it is associated with the World Wide Web but it is older than the origin of Web. It was only developed keeping in mind the consumer electronics and communication equipments. It came into existence as a part of web application, web services and a platform independent programming language in the 1990s. &lt;br /&gt;&lt;br /&gt;Download JDK         &lt;br /&gt;What is JDK (Java Development Kit) &lt;br /&gt;JDK is a software development program provided by sun Microsystems. Java Development Kit or JDK comes in various version and can be downloaded free from the sun Microsystems. JVM compiler, debugger and  other tools are used with JDK for developing java based application &amp; java applets. So make sure that your JVM compiler &amp; JDK versions are same. &lt;br /&gt;JDK also known as Java 2 Platform, That comes in three editions J2ME, J2SE &amp; J2EE. If you are beginner or learning Java then start by downloading J2SE.&lt;br /&gt;Acronyms:&lt;br /&gt;JDK  Java Development Kit&lt;br /&gt;JVM  Java virtual machine&lt;br /&gt;Download JDK&lt;br /&gt;You can download JDK from www.javasoft.com/j2se&lt;br /&gt;Latest version of JDK&lt;br /&gt;1. JDK 5.0 Update 6&lt;br /&gt;The full internal version number for this update release is 1.5.0_06-b05 (where "b" means "build"). The external version number is 5.0u6. Java Version 1.5.0_06 introduces various security enhancements in Java Plug-in and Java Web Start to better protect users and enterprises. For more information please visit: http://java.sun.com/j2se/1.5.0/ReleaseNotes.html &lt;br /&gt;&lt;br /&gt;Getting Started - Write your First Java Program&lt;br /&gt;&lt;br /&gt;Let us begin by writing our first Java program that prints a message "Hello, world!" to the display console, as shown:&lt;br /&gt;&lt;br /&gt;Hello, world!&lt;br /&gt;&lt;br /&gt;You could write Java programs using a programming text editor or an integrated development tool (such as Eclipse or NetBeans), Depending on your choice, read:&lt;br /&gt;&lt;br /&gt;    * writing your first Java program using JDK and a programming text editor (try this if you are not sure).&lt;br /&gt;    * writing your first Java program using Eclipse.&lt;br /&gt;    * writing your first Java program using NetBeans.&lt;br /&gt;&lt;br /&gt;Hello, world&lt;br /&gt;&lt;br /&gt;Dissecting Hello.java: Let us dissect the "Hello-world" program (reproduced below with line numbers added on the left panel to help in the explanation).&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * First Java program, which says "Hello, world!"&lt;br /&gt; */&lt;br /&gt;public class Hello {   // To save as "Hello.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      System.out.println("Hello, world!");   // Print message&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The statements in green are called comments. Comments are not executable, but provide useful explanation to you and your readers. There are two kinds of comments:&lt;br /&gt;&lt;br /&gt;   1. Multi-line Comment: begins with "/*" and ends with "*/", and may span more than one lines (as in Lines 1-3).&lt;br /&gt;   2. End-of-line Comment: begins with "//" and lasts until the end of the current line (as in Lines 4 and 6).&lt;br /&gt;&lt;br /&gt;The basic unit of a Java program is a class. A class called "Hello" is defined with the keyword "class" in Lines 4-8, as follows:&lt;br /&gt;&lt;br /&gt;public class Hello { ...... }    // Use keyword "class" to define a class&lt;br /&gt;                                 // { ...... } is the "body" of the class&lt;br /&gt;                                 // The keyword "public" will be discussed later&lt;br /&gt;&lt;br /&gt;In Java, the name of the source file must be the same as the name of the public class with a mandatory file extension of ".java". Hence, this file must be saved as "Hello.java".&lt;br /&gt;&lt;br /&gt;Lines 5-7 defines the so-called main() method, which is the starting point, or entry point, of program execution, as follows:&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) { ...... }   // main() method is the entry point of program execution&lt;br /&gt;                                                    // { ...... } is the "body" of the method,&lt;br /&gt;                                                    // which contains your programming statements.&lt;br /&gt;                                                    // Other keywords will be discussed later.&lt;br /&gt;&lt;br /&gt;In Line 6, the method System.out.println("Hello, world!") is used to print the message string "Hello, world!". A string is surrounded by a pair of double quotes and contain texts. The text will be printed as it is, without the double quotes.&lt;br /&gt;&lt;br /&gt;A programming statement performs a piece of programmming action, which must be terminated by a semi-colon ";", as in Line 6.&lt;br /&gt;&lt;br /&gt;A block is a group of programming statements enclosed by braces { }. There are two blocks in this program. One contains the body of the class Hello. The other contains the body of the main() method. There is no need to put a semi-colon after the closing brace.&lt;br /&gt;&lt;br /&gt;Extra white-spaces, tabs, and lines are ignored, but they could help you and your readers to better understand your program. Use them liberally.&lt;br /&gt;&lt;br /&gt;Java is case sensitive - a ROSE is NOT a Rose, and is NOT a rose. The filename is also case sensitive.&lt;br /&gt;Java Program Template&lt;br /&gt;&lt;br /&gt;You can use the following template to write your Java programs. Choose a meaningful Classname that reflects the purpose of your program, and write your programming statements inside the body of the main() method. Don't worry about the other terms and keywords now, which will be explained in due course.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;public class Classname {   // Choose a meaningful classname, save as "Classname.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      // Your programming statements here!&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Printing via System.out.println() and System.out.print()&lt;br /&gt;&lt;br /&gt;System.out.println(aString) prints aString to the display console, and brings the cursor to the beginning of the next line; while System.out.print(aString) prints aString but keeps the cursor after the printed string. Try the following program and explain the output produced.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;public class PrintTest {   // Save as "PrintTest.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      System.out.println("Hello, world!");  // Advance to next line after printing "Hello, world!"&lt;br /&gt;      System.out.println();                 // Print a empty line&lt;br /&gt;      System.out.print("Hello, world!");    // Cursor stayed after the printed string&lt;br /&gt;      System.out.println("Hello,");&lt;br /&gt;      System.out.print(" ");                // Print a space&lt;br /&gt;      System.out.print("world!");&lt;br /&gt;      System.out.println("Hello, world!");&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Hello, world!&lt;br /&gt; &lt;br /&gt;Hello, world!Hello,&lt;br /&gt; world!Hello, world!&lt;br /&gt;&lt;br /&gt;Let's Write a Program to Add a Few Numbers&lt;br /&gt;&lt;br /&gt;Let's write a program to add five integers as follows:&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Sum five numbers and print the result&lt;br /&gt; */&lt;br /&gt;public class FiveNumberSum {   // Save as "FiveNumberSum.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int number1 = 11;&lt;br /&gt;      int number2 = 22;&lt;br /&gt;      int number3 = 33;&lt;br /&gt;      int number4 = 44;&lt;br /&gt;      int number5 = 55;&lt;br /&gt;      int sum;&lt;br /&gt;      sum = number1 + number2 + number3 + number4 + number5;&lt;br /&gt;      System.out.print("The sum is ");   // Print a descriptive string&lt;br /&gt;      System.out.println(sum);           // Print the value stored in sum&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum is 165&lt;br /&gt;&lt;br /&gt;Lines 6-10 declare five int (integer) variables called number1, number2, number3, number4, and number5; and assign then values of 11, 22, 33, 44, and 55 respectively, via the so-called assignment operator "=".&lt;br /&gt;&lt;br /&gt;Line 11 declares a int (integer) variable called sum, without assigning an initial value.&lt;br /&gt;&lt;br /&gt;Line 12 computes the sum of number1 to number5 and assign the result to the variable sum. The symbol '+' denotes arithmetic addition, just like Mathematics.&lt;br /&gt;&lt;br /&gt;Line 13 prints a descriptive string. A String is surrounded by double quotes, and will be printed as it is (but without the double quotes).&lt;br /&gt;&lt;br /&gt;Line 14 prints the value stored in the variable sum (in this case, the sum of the five numbers) - you should not surround a variable to be printed by double quotes.&lt;br /&gt;What is a Program?&lt;br /&gt;&lt;br /&gt;A program is a sequence of instructions (or programming statements), executing one after another - usually in a sequential manner, as illustrated in the following flow chart.&lt;br /&gt;sequential flow&lt;br /&gt;&lt;br /&gt;EXAMPLE: The following program prints the area and perimeter of a circle, given its radius. Take note that the programming statements are executed sequentially.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Print the area and perimeter of a circle, given its radius.&lt;br /&gt; */&lt;br /&gt;public class CircleComputation {  // Saved as "CircleComputation.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      // Declare variables&lt;br /&gt;      double radius;&lt;br /&gt;      double area;&lt;br /&gt;      double perimeter;&lt;br /&gt;      &lt;br /&gt;      // Assign a value to radius&lt;br /&gt;      radius = 1.2;&lt;br /&gt;      &lt;br /&gt;      // Compute area and perimeter&lt;br /&gt;      area = radius * radius * 3.1416;&lt;br /&gt;      perimeter = 2.0 * radius * 3.1416;&lt;br /&gt;      &lt;br /&gt;      // Print results&lt;br /&gt;      System.out.print("The radius is ");&lt;br /&gt;      System.out.println(radius);&lt;br /&gt;      System.out.print("The area is ");&lt;br /&gt;      System.out.println(area);&lt;br /&gt;      System.out.print("The perimeter is ");&lt;br /&gt;      System.out.println(perimeter);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The radius is 1.2&lt;br /&gt;The area is 4.523904&lt;br /&gt;The perimeter is 7.53984&lt;br /&gt;&lt;br /&gt;Lines 7-9 declare three double variables, which can hold real numbers (or floating-point numbers). Line 12 assigns a value to the variable radius. Lines 15-16 compute the area and perimeter, based on the radius. Lines 19-24 print the results.&lt;br /&gt;&lt;br /&gt;Take note that the programming statements inside the main() are executed one after another, sequentially.&lt;br /&gt;What is a Variable?&lt;br /&gt;&lt;br /&gt;Computer programs manipulate (or process) data. A variable is used to store a piece of data for processing. It is called variable because you can change the value stored.&lt;br /&gt;&lt;br /&gt;More precisely, a variable is a named storage location, that stores a value of a particular data type. In other words, a variable has a name, a type and stores a value.&lt;br /&gt;&lt;br /&gt;    * A variable has a name (or identifier), e.g., radius, area, age, height. The name is needed to uniquely identify each variable, so as to assign a value to the variable (e.g., radius=1.2), and retrieve the value stored (e.g., area = radius*radius*3.1416).&lt;br /&gt;    * A variable has a type. Examples of type are:&lt;br /&gt;          o int: for integers (whole numbers) such as 123 and -456;&lt;br /&gt;          o double: for floating-point or real numbers, such as 3.1416, -55.66, having a decimal point and fractional part;&lt;br /&gt;          o String: for texts such as "Hello", "Good Morning!". Text strings are enclosed within a pair of double quotes.&lt;br /&gt;    * A variable can store a value of that particular type. It is important to take note that a variable in most programming languages is associated with a type, and can only store value of the particular type. For example, a int variable can store an integer value such as 123, but NOT real number such as 12.34, nor texts such as "Hello". The concept of type was introduced into the early programming languages to simplify intrepretation of data made up of 0s and 1s.&lt;br /&gt;&lt;br /&gt;The following diagram illustrates three types of variables: int, double and String. An int variable stores an integer (whole number). A double variable stores a real number. A String variable stores texts.&lt;br /&gt;variable&lt;br /&gt;&lt;br /&gt;To use a variable, you need to first declare its name and type, in one of the following syntaxes:&lt;br /&gt;&lt;br /&gt;var-type var-name;                    // Declare a variable of a type&lt;br /&gt;var-type var-name-1, var-name-2,...;  // Declare multiple variables of the same type&lt;br /&gt;var-type var-name = initial-value;    // Declare a variable of a type, and assign an initial value&lt;br /&gt;var-type var-name-1 = initial-value-1, var-name-2 = initial-value-2,... ;  // Declare variables with initial values&lt;br /&gt;&lt;br /&gt;Take note that:&lt;br /&gt;&lt;br /&gt;    * Each declaration statement is terminated with a semi-colon ";".&lt;br /&gt;    * In multiple-variable declaration, the names are separated by commas ",".&lt;br /&gt;    * The symbol "=", known as the assignment operator, can be used to assign an initial value (of the declared type) to the variable.&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;&lt;br /&gt;int sum;              // Declare a variable named "sum" of the type "int" for storing an integer.&lt;br /&gt;                      // Terminate the statement with a semi-colon.&lt;br /&gt;int number1, number2; // Declare two "int" variables named "number1" and "number2",&lt;br /&gt;                      // separated by a comma.&lt;br /&gt;double average;       // Declare a variable named "average" of the type "double" for storing a real number.&lt;br /&gt;int height = 20;      // Declare an int variable, and assign an initial value. &lt;br /&gt;&lt;br /&gt;Once a variable is declared, you can assign and re-assign a value to a variable, via the assignment operator "=". For example,&lt;br /&gt;&lt;br /&gt;int number;           // Declare a variable named "number" of the type "int" (integer)&lt;br /&gt;number = 99;          // Assign an integer value of 99 to the variable "number"&lt;br /&gt;number = 88;          // Re-assign a value of 88 to "number"&lt;br /&gt;number = number + 1;  // Evaluate "number + 1", and assign the result back to "number"&lt;br /&gt;int sum = 0;          // Declare an int variable named sum and assign an initial value of 0&lt;br /&gt;sum = sum + number;   // Evaluate "sum + number", and assign the result back to "sum", i.e. add number into sum&lt;br /&gt;int num1 = 5, num2 = 6;  // Declare and initialize two int variables in one statement, separated by a comma&lt;br /&gt;double radius = 1.5;  // Declare a variable name radius, and initialize to 1.5&lt;br /&gt;int number;           // ERROR: A variable named "number" has already been declared&lt;br /&gt;sum = 55.66;          // ERROR: The variable "sum" is an int. It cannot be assigned a floating-point number&lt;br /&gt;sum = "Hello";        // ERROR: The variable "sum" is an int. It cannot be assigned a text string&lt;br /&gt;&lt;br /&gt;Take note that:&lt;br /&gt;&lt;br /&gt;    * Each variable can only be declared once.&lt;br /&gt;    * You can declare a variable anywhere inside the program, as long as it is declared before it is being used.&lt;br /&gt;    * Once the type of a variable is declared, it can only store a value belonging to this particular type. For example, an int variable can hold only integer such as 123, and NOT floating-point number such as -2.17 or text string such as "Hello".&lt;br /&gt;    * The type of a variable cannot be changed inside the program.&lt;br /&gt;&lt;br /&gt;I have shown your two data types in the above example: int for integer and double for floating-point number (or real number). Take note that in programming, int and double are two distinct types and special caution must be taken when mixing them in an operation, which shall be explained later.&lt;br /&gt;Basic Arithmetic Operations&lt;br /&gt;&lt;br /&gt;The basic arithmetic operations are:&lt;br /&gt;&lt;br /&gt;    * addition (+)&lt;br /&gt;    * subtraction (-)&lt;br /&gt;    * multiplication (*)&lt;br /&gt;    * division (/)&lt;br /&gt;    * remainder or modulo (%)&lt;br /&gt;    * increment (by 1) (++)&lt;br /&gt;    * decrement (by 1) (--)&lt;br /&gt;&lt;br /&gt;Addition, subtraction, multiplication, division and remainder take two operands (binary operators); while increment and decrement take only one operand (unary operators).&lt;br /&gt;&lt;br /&gt;The following program illustrates these arithmetic operations.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;26&lt;br /&gt;27&lt;br /&gt;28&lt;br /&gt;29&lt;br /&gt;30&lt;br /&gt;31&lt;br /&gt;32&lt;br /&gt;33&lt;br /&gt;34&lt;br /&gt;35&lt;br /&gt;36&lt;br /&gt;37&lt;br /&gt;38&lt;br /&gt;39&lt;br /&gt;40&lt;br /&gt;41&lt;br /&gt;42&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * Test Arithmetic Operations&lt;br /&gt; */&lt;br /&gt;public class ArithmeticTest {     // Save as "ArithmeticTest.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;   &lt;br /&gt;      int number1 = 98;     // Declare an int variable number1 and initialize it to 98&lt;br /&gt;      int number2 = 5;      // Declare an int variable number2 and initialize it to 5&lt;br /&gt;      int sum, difference, product, quotient, remainder;  // Declare five int variables to hold results&lt;br /&gt;   &lt;br /&gt;      // Perform arithmetic Operations&lt;br /&gt;      sum = number1 + number2;&lt;br /&gt;      difference = number1 - number2;&lt;br /&gt;      product = number1 * number2;&lt;br /&gt;      quotient = number1 / number2;&lt;br /&gt;      remainder = number1 % number2;&lt;br /&gt;      System.out.print("The sum, difference, product, quotient and remainder of ");  // Print description&lt;br /&gt;      System.out.print(number1);      // Print the value of the variable&lt;br /&gt;      System.out.print(" and ");&lt;br /&gt;      System.out.print(number2);&lt;br /&gt;      System.out.print(" are ");&lt;br /&gt;      System.out.print(sum);&lt;br /&gt;      System.out.print(", ");&lt;br /&gt;      System.out.print(difference);&lt;br /&gt;      System.out.print(", ");&lt;br /&gt;      System.out.print(product);&lt;br /&gt;      System.out.print(", ");&lt;br /&gt;      System.out.print(quotient);&lt;br /&gt;      System.out.print(", and ");&lt;br /&gt;      System.out.println(remainder);&lt;br /&gt;   &lt;br /&gt;      number1++;  // Increment the value stored in the variable "number1" by 1&lt;br /&gt;                  // Same as "number1 = number1 + 1"&lt;br /&gt;      number2--;  // Decrement the value stored in the variable "number2" by 1&lt;br /&gt;                  // Same as "number2 = number2 - 1"&lt;br /&gt;      System.out.println("number1 after increment is " + number1);  // Print description and variable&lt;br /&gt;      System.out.println("number2 after decrement is " + number2);&lt;br /&gt;      quotient = number1 / number2; &lt;br /&gt;      System.out.println("The new quotient of " + number1 + " and " + number2 &lt;br /&gt;            + " is " + quotient);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum, difference, product, quotient and remainder of 98 and 5 are 103, 93, 490, 19, and 3&lt;br /&gt;number1 after increment is 99&lt;br /&gt;number2 after decrement is 4&lt;br /&gt;The new quotient of 99 and 4 is 24&lt;br /&gt;&lt;br /&gt;Lines 7-8 declare and initialize two int (integer) variables number1 and number2. Line 9 declares five int variables sum, difference, product, quotient, and remainder to hold the results of operations, in one statement (with items separated by commas), without assigning initial values.&lt;br /&gt;&lt;br /&gt;Lines 12-16 carry out the arithmetic operations on variables number1 and number2. Take note that division of two integers produces a truncated integer, e.g., 98/5 → 19, 99/4 → 24, and 1/2 → 0.&lt;br /&gt;&lt;br /&gt;Lines 17-30 print the results of the arithmetic operations, with appropriate string descriptions in between. Take note that text string are enclosed within double-quotes, and will get printed as it is, including the white spaces but without the double quotes. To print the value stored in a variable, no double quotes should be used. For example,&lt;br /&gt;&lt;br /&gt;System.out.println("sum");   // Print text string "sum" - as it is&lt;br /&gt;System.out.println(sum);     // Print the value stored in variable sum, e.g., 98&lt;br /&gt;&lt;br /&gt;Lines 32 and 34 illustrate the increment and decrement operations. Unlike "+", "-", "*", "/" and "%", which work on two operands (binary operators), "++" and "--" operate on only one operand (unary operators).&lt;br /&gt;&lt;br /&gt;Lines 36-37 print the new values stored after the increment/decrement operations. Take note that instead of using many print() statements as in Lines 17-30, we could simply place all the items (text strings and variables) into one println(), with the items separated by "+". In this case, "+" does not perform addition. Instead, it concatenates or joins all the items together. Line 36 provides another example.&lt;br /&gt;&lt;br /&gt;TRY:&lt;br /&gt;&lt;br /&gt;   1. Combining Lines 17-30 into one single println() statement, using "+" to concatenate all the items together.&lt;br /&gt;   2. Introduce one more int variable called number3, and assign it an integer value of 77. Compute and print the sum and product of all the three numbers.&lt;br /&gt;   3. In Mathematics, we could omit the multiplication sign in an arithmetic expression, e.g., x = 5a + 4b. In programming, you need to explicitly provide all the operators, i.e., x = 5*a + 4*b. Try printing the sum of 31 times of number1 and 17 times of number2 and 87 time of number3.&lt;br /&gt;&lt;br /&gt;What If Your Need To Add Many Numbers?&lt;br /&gt;&lt;br /&gt;Suppose that you want to add all the integers from 1 to 1000. If you follow the previous example, you would require a thousand-line program! Instead, you could use a loop in your program to perform a repetitive task, that is what the computer is good at.&lt;br /&gt;Loop&lt;br /&gt;&lt;br /&gt;Try the following program, which sums all the integers from a lowerbound (=1) to an upperbound (=1000) using a so-called for-loop.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Sum from a lowerbound to an upperbound using a for-loop&lt;br /&gt; */&lt;br /&gt;public class RunningNumberSum {  // Save as "RunningNumberSum.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int lowerbound = 1;      // Store the lowerbound&lt;br /&gt;      int upperbound = 1000;   // Store the upperbound&lt;br /&gt;      int sum = 0;   // Declare an int variable "sum" to accumulate the numbers&lt;br /&gt;                     // Set the initial sum to 0&lt;br /&gt;      // Use a for-loop to repeatitively sum from the lowerbound to the upperbound&lt;br /&gt;      for (int number = 1; number &lt;= upperbound; number++) {&lt;br /&gt;         sum = sum + number;   // Accumulate number into sum&lt;br /&gt;      } &lt;br /&gt;      // Print the result&lt;br /&gt;      System.out.println("The sum from " + lowerbound + " to " + upperbound + " is " + sum);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum from 1 to 1000 is 500500&lt;br /&gt;&lt;br /&gt;Let us dissect this program:&lt;br /&gt;&lt;br /&gt;Lines 6 and 7 declare two int variables to store the lowerbound and upperbound respectively.&lt;br /&gt;&lt;br /&gt;Line 8 declares an int variable named sum and initializes it to 0. This variable will be used to accumulate numbers over the steps in the repetitive loop.&lt;br /&gt;&lt;br /&gt;Lines 11-13 contain a so-called for-loop. A for-loop takes the following syntax:&lt;br /&gt;&lt;br /&gt;// Syntax&lt;br /&gt;for ( initialization ; test ; post-processing ) {&lt;br /&gt;   body ;&lt;br /&gt;}&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;// Example&lt;br /&gt;int sum = 0;&lt;br /&gt;for (int number = 1; number &lt;= 1000; number++) {&lt;br /&gt;   sum = sum + number;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;for-loop&lt;br /&gt;&lt;br /&gt;There are four parts in a for-loop. Three of them, initialization, test condition and post-processing, are enclosed in brackets ( ), and separated by two semi-colons ";". The body contains the repetitive task to be performed. As illustrated in the above flow chart, the initialization statement is first executed. The test is then evaluated. If the test returns true, the body is executed; followed by the post-processing statement. The test is checked again and the process repeats until the test is false. When the test is false, the for-loop completes and program execution continues to the next statement after the for-loop.&lt;br /&gt;&lt;br /&gt;In our program, the initialization statement declares an int variable named number and initializes it to lowerbound (=1). The test checks if number is equal to or less than upperbound (=1000). If it is true, the current value of number is added into the sum, and the post-processing statement "number++" increases the value of number by 1. The test is then checked again and the process repeats until the test is false (i.e., number increases to upperbound+1), which causes the for-loop to terminate. Execution then continues to the next statement (in Line 15).&lt;br /&gt;&lt;br /&gt;In this example, the loop repeats 1000 times (number having value of 1 to 1000). After the loop is completed, Line 15 prints the result with a proper description.&lt;br /&gt;&lt;br /&gt;TRY:&lt;br /&gt;&lt;br /&gt;   1. Modify the above program to sum all the numbers from 9 to 888. (Ans: 394680.)&lt;br /&gt;   2. Modify the above program to sum all the odd numbers between 1 to 1000. (Hint: Change the post-processing statement to "number = number + 2". Ans: 250000)&lt;br /&gt;   3. Modify the above program to sum all the numbers between 1 to 1000 that are divisible by 7. (Hint: Modify the initialization and post-processing statements. Ans: 71071.)&lt;br /&gt;   4. Modify the above program to find the sum of the square of all the numbers from 1 to 100, i.e. 1*1 + 2*2 + 3*3 +... (Ans: 338350.)&lt;br /&gt;   5. Modify the above program (called RunningNumberProduct) to compute the product of all the numbers from 1 to 10. (Hint: Use a variable called product instead of sum and initialize product to 1. Ans: 3628800.)&lt;br /&gt;&lt;br /&gt;Conditional&lt;br /&gt;&lt;br /&gt;What if you want to sum all the odd numbers and also all the even numbers between 1 and 1000? There are many ways to do this. You could declare two variables: sumOdd and sumEven. You can then use a conditional statement to check whether the number is odd or even, and accumulate the number into the respective sums. The program is as follows:&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;23&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Sum the odd numbers and the even numbers from a lowerbound to an upperbound&lt;br /&gt; */&lt;br /&gt;public class OddEvenSum {  // Save as "OddEvenSum.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int lowerbound = 1;&lt;br /&gt;      int upperbound = 1000;&lt;br /&gt;      int sumOdd  = 0;    // For accumulating odd numbers, init to 0&lt;br /&gt;      int sumEven = 0;    // For accumulating even numbers, init to 0&lt;br /&gt;      for (int number = lowerbound; number &lt;= upperbound; number++) {&lt;br /&gt;         if (number % 2 == 0) {  // Even&lt;br /&gt;            sumEven += number;   // Same as sumEven = sumEven + number&lt;br /&gt;         } else {                // Odd&lt;br /&gt;            sumOdd += number;    // Same as sumOdd = sumOdd + number&lt;br /&gt;         }&lt;br /&gt;      } &lt;br /&gt;      // Print the result&lt;br /&gt;      System.out.println("The sum of odd numbers from " + lowerbound + " to " + upperbound + " is " + sumOdd);&lt;br /&gt;      System.out.println("The sum of even numbers from " + lowerbound + " to " + upperbound + "  is " + sumEven);&lt;br /&gt;      System.out.println("The difference between the two sums is " + (sumOdd - sumEven));&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum of odd numbers from 1 to 1000 is 250000&lt;br /&gt;The sum of even numbers from 1 to 1000  is 250500&lt;br /&gt;The difference between the two sums is -500&lt;br /&gt;&lt;br /&gt;Lines 8 and 9 declare two int variables named sumOdd and sumEven and initialize them to 0, for accumulating the odd and even numbers respectively.&lt;br /&gt;&lt;br /&gt;Lines 11-15 contain a conditional statement. The conditional statement can take one the following forms: if-then, if-then-else.&lt;br /&gt;&lt;br /&gt;// if-then syntax&lt;br /&gt;if ( condition ) {&lt;br /&gt;   true-body ;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;// Example&lt;br /&gt;if (mark &gt;= 50) {&lt;br /&gt;   System.out.println("Congratulation!");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// if-then-else syntax&lt;br /&gt;if ( condition ) {&lt;br /&gt;   true-body ;&lt;br /&gt;} else {&lt;br /&gt;   false-body ;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;// Example&lt;br /&gt;if (mark &gt;= 50) {&lt;br /&gt;   System.out.println("Congratulation!");&lt;br /&gt;} else {&lt;br /&gt;   System.out.println("Try Harder!");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;For a if-then statement, the true-body is executed if the test condition is true. Otherwise, nothing is done and the execution continues to the next statement.&lt;br /&gt;&lt;br /&gt;For a if-then-else statement, the true-body is executed if the condition is true; otherwise, the false-body is executed. Execution is then continued to the next statement.&lt;br /&gt;&lt;br /&gt;The following flow chart illustrates the if-then and if-then-else statements.&lt;br /&gt;if-then if-then-else&lt;br /&gt;&lt;br /&gt;In our program, we use the remainder (or modulo) operator (%) to compute the remainder of number divides by 2. We then compare the remainder with 0 to test for even number.&lt;br /&gt;&lt;br /&gt;There are six comparison operators:&lt;br /&gt;&lt;br /&gt;    * equal to (==)&lt;br /&gt;    * not equal to (!=)&lt;br /&gt;    * greater than (&gt;)&lt;br /&gt;    * less than (&lt;)&lt;br /&gt;    * greater than or equal to (&gt;=)&lt;br /&gt;    * less than or equal to (&lt;=)&lt;br /&gt;&lt;br /&gt;Take note that the comparison operator for equality is a double-equal sign (==); whereas a single-equal sign (=) is the assignment operator.&lt;br /&gt;Combining Simple Conditions&lt;br /&gt;&lt;br /&gt;Suppose that you want to check whether a number x is between 1 and 100 (inclusive), i.e., 1 &lt;= x &lt;= 100. There are two simple conditions here, (x &gt;= 1) AND (x &lt;= 100). In programming, you cannot write 1 &lt;= x &lt;= 100, but need to write (x &gt;= 1) &amp;&amp; (x &lt;= 100), where "&amp;&amp;" denotes the "AND" operator. Similarly, suppose that you want to check whether a number x is divisible by 2 OR by 3, you have to write (x % 2 == 0) || (x % 3 == 0) where "||" denotes the "OR" operator.&lt;br /&gt;&lt;br /&gt;There are three so-called logical operators that operate on the boolean conditions:&lt;br /&gt;&lt;br /&gt;    * AND (&amp;&amp;)&lt;br /&gt;    * OR (||)&lt;br /&gt;    * NOT (!)&lt;br /&gt;&lt;br /&gt;For examples:&lt;br /&gt;&lt;br /&gt;// Return true if x is between 0 and 100 (inclusive)&lt;br /&gt;(x &gt;= 0) &amp;&amp; (x &lt;= 100)  // AND (&amp;&amp;)&lt;br /&gt;// Incorrect to use 0 &lt;= x &lt;= 100&lt;br /&gt;  &lt;br /&gt;// Return true if x is outside 0 and 100 (inclusive)&lt;br /&gt;(x &lt; 0) || (x &gt; 100)       // OR (||)&lt;br /&gt;!((x &gt;= 0) &amp;&amp; (x &lt;= 100))  // NOT (!), AND (&amp;&amp;)&lt;br /&gt; &lt;br /&gt;// Return true if "year" is a leap year&lt;br /&gt;// A year is a leap year if it is divisible by 4 but not by 100, or it is divisible by 400.&lt;br /&gt;((year % 4 == 0) &amp;&amp; (year % 100 != 0)) || (year % 400 == 0)&lt;br /&gt;&lt;br /&gt;TRY:&lt;br /&gt;&lt;br /&gt;   1. Write a program to sum all the integers between 1 and 1000, that are divisible by 13, 15 or 17, but not by 30.&lt;br /&gt;   2. Write a program to print all the leap years between AD1 and AD2010, and also print the number of leap years.&lt;br /&gt;&lt;br /&gt;Type double and Floating-Point Numbers&lt;br /&gt;&lt;br /&gt;Recall that a variable in Java has a name and a type, and can hold a value of only that particular type. We have so far used a type called int. A int variable holds an integer, such as 123 and -456; it cannot hold a real number, such as 12.34.&lt;br /&gt;&lt;br /&gt;In programming, real numbers such as 3.1416, -55.66 are called floating-point numbers, and belong to a type called double. For example,&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;public class CircleOperation {  // Saved as "CircleOperation.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      double radius = 1.2;     // Type double for floating-point numbers&lt;br /&gt;      double pi = 3.1416;&lt;br /&gt;      double area;&lt;br /&gt;      area = radius * radius * pi;&lt;br /&gt;      System.out.println("The radius is " + radius);&lt;br /&gt;      System.out.println("The area is " + area);&lt;br /&gt;      System.out.println("The perimeter is " + (2.0 * pi * radius));&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The radius is 1.2&lt;br /&gt;The area is 4.523904&lt;br /&gt;The perimeter is 7.53984&lt;br /&gt;&lt;br /&gt;Mixing int and double, and Type Casting&lt;br /&gt;&lt;br /&gt;Although you can use a double to keep an integer value (e.g., double count = 5.0), you should use an int for integer, as int is far more efficient than double (e.g., in terms of running times, storage, among others).&lt;br /&gt;&lt;br /&gt;At times, you may need both int and double in your program. For example, keeping the sum from 1 to 1000 as int, and their average as double. You need to be extremely careful when different types are mixed.&lt;br /&gt;&lt;br /&gt;It is important to note that:&lt;br /&gt;&lt;br /&gt;    * Arithmetic operations ('+', '-', '*', '/') of two int's produce an int; while arithmetic operations of two double's produce a double. Hence, 1/2 → 0 and 1.0/2.0 → 0.5.&lt;br /&gt;    * Arithmetic operations of an int and a double produce a double. Hence, 1.0/2 → 0.5 and 1/2.0 → 0.5.&lt;br /&gt;&lt;br /&gt;You can assign an integer value to a double variable. The integer value will be converted to a double value automatically, e.g., 3 → 3.0. For example,&lt;br /&gt;&lt;br /&gt;int i = 3;&lt;br /&gt;double d;&lt;br /&gt;d = i;    // 3 → 3.0, d = 3.0&lt;br /&gt;d = 88;   // 88 → 88.0, d = 88.0&lt;br /&gt;double nought = 0;  // 0 → 0.0; there is a subtle difference between int 0 and double 0.0&lt;br /&gt;&lt;br /&gt;However, you CANNOT assign a double value directly to an int variable. This is because the fractional part could be lost, and the compiler signals an error in case that you were not aware. For example,&lt;br /&gt;&lt;br /&gt;double d = 5.5;&lt;br /&gt;int i;&lt;br /&gt;i = d;     // Compilation Error&lt;br /&gt;i = 6.6;   // Compilation Error&lt;br /&gt;&lt;br /&gt;To assign an double value to an int variable, you need to explicitly invoke a type-casting operation to truncate the fractional part, as follows:&lt;br /&gt;&lt;br /&gt;double d = 5.5;&lt;br /&gt;int i;&lt;br /&gt;i = (int) d;        // Type-cast the value of double d, which returns an int value,&lt;br /&gt;                    // assign the resultant int value to int i.&lt;br /&gt;                    // The value stored in d is not affected.&lt;br /&gt;i = (int) 3.1416;   // i = 3&lt;br /&gt;&lt;br /&gt;Take note that type-casting operator, in the form of (int) or (double), applies to one operand immediately after the operator (i.e., unary operator).&lt;br /&gt;&lt;br /&gt;Type-casting is an operation, like increment or addition, which operates on a operand and return a value (in the specified type), e.g., (int)3.1416 takes a double value of 3.1416 and returns 3 (of type int); (double)5 takes an int value of 5 and returns 5.0 (of type double).&lt;br /&gt;&lt;br /&gt;Try the following program and explain the outputs produced.&lt;br /&gt;&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;7&lt;br /&gt;8&lt;br /&gt;9&lt;br /&gt;10&lt;br /&gt;11&lt;br /&gt;12&lt;br /&gt;13&lt;br /&gt;14&lt;br /&gt;15&lt;br /&gt;16&lt;br /&gt;17&lt;br /&gt;18&lt;br /&gt;19&lt;br /&gt;20&lt;br /&gt;21&lt;br /&gt;22&lt;br /&gt;23&lt;br /&gt;24&lt;br /&gt;25&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Find the sum and average from a lowerbound to an upperbound&lt;br /&gt; */&lt;br /&gt;public class TypeCastingTest {   // Save as "TypeCastingTest.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int lowerbound = 1;&lt;br /&gt;      int upperbound = 1000;&lt;br /&gt;      int sum = 0;      // sum is "int"&lt;br /&gt;      double average;   // average is "double"&lt;br /&gt;      // Compute the sum (in "int")&lt;br /&gt;      for (int number = lowerbound; number &lt;= upperbound; number++) {&lt;br /&gt;         sum = sum + number;&lt;br /&gt;      }&lt;br /&gt;      System.out.println("The sum from " + lowerbound + " to " + upperbound + " is " + sum);&lt;br /&gt;      // Compute the average (in "double")&lt;br /&gt;      average = sum/1000;&lt;br /&gt;      System.out.println("Average 1 is " + average);&lt;br /&gt;      average = (double)sum/1000;&lt;br /&gt;      System.out.println("Average 2 is " + average);&lt;br /&gt;      average = sum/1000.0;&lt;br /&gt;      System.out.println("Average 3 is " + average);&lt;br /&gt;      average = (double)(sum/1000);&lt;br /&gt;      System.out.println("Average 4 is " + average);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The sum is 500500&lt;br /&gt;Average 1 is 500.0  &lt;== incorrect&lt;br /&gt;Average 2 is 500.5&lt;br /&gt;Average 3 is 500.5&lt;br /&gt;Average 4 is 500.0  &lt;== incorrect&lt;br /&gt;&lt;br /&gt;The first average is incorrect, as int/int produces an int (of 500), which is converted to double (of 500.0) to be stored in average (of double).&lt;br /&gt;&lt;br /&gt;For the second average, the value of sum (of int) is first converted to double. Subsequently, double/int produces a double.&lt;br /&gt;&lt;br /&gt;For the third average, int/double produces double.&lt;br /&gt;&lt;br /&gt;For the fourth average, int/int produces an int (of 500), which is casted to double (of 500.0) and assigned to average (of double).&lt;br /&gt;&lt;br /&gt;TRY:&lt;br /&gt;&lt;br /&gt;   1. Write a program called HarmonicSeriesSum to compute the sum of a harmonic series 1 + 1/2 + 1/3 + 1/4 + .... + 1/n, where n = 1000. Keep the sum in a double variable, and take note that 1/2 gives 0 but 1.0/2 gives 0.5.&lt;br /&gt;      Try computing the sum for n=1000, 5000, 10000, 50000, 100000.&lt;br /&gt;      Hints:&lt;br /&gt;&lt;br /&gt;      public class HarmonicSeriesSum {   // Saved as "HarmonicSeriesSum.java"&lt;br /&gt;         public static void main (String[] args) {&lt;br /&gt;            int numTerms = 1000;&lt;br /&gt;            double sum = 0.0;    // For accumulating sum in double&lt;br /&gt;            for (int denominator = 1; denominator &lt;= numTerms ; denominator++) {&lt;br /&gt;                // Beware that int/int gives int&lt;br /&gt;                ......&lt;br /&gt;            }&lt;br /&gt;            // Print the sum&lt;br /&gt;            ......&lt;br /&gt;         }&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      The sum is 7.484470860550343&lt;br /&gt;&lt;br /&gt;   2. Modify the above program (called GeometricSeriesSum) to compute the sum of this series: 1 + 1/2 + 1/4 + 1/8 + .... (for 1000 terms).&lt;br /&gt;      Hints: Use post-processing statement of denominator = denominator*2.&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;&lt;br /&gt;I have presented the basics for you to get start in programming. To learn programming, you need to understand the syntaxes and features involved in the programming language that you chosen, and you have to practice, practice and practice, on as many problems as you could.&lt;br /&gt;REFERENCES &amp; RESOURCES&lt;br /&gt;&lt;br /&gt;    * "New to Java Program Center" @ http://www.oracle.com/technetwork/topics/newtojava/overview/index.html, Sun Microsystems (now Oracle).&lt;br /&gt;    * "The Java tutorials - Getting Started" @ http://download.oracle.com/javase/tutorial/ Sun Microsystems (now Oracle).&lt;br /&gt;    * Y. Daniel Liang, "Introduction to Java Programming", latest edition.&lt;br /&gt;    * Deitel &amp; Deitel, "Java, How to Program", latest edition.&lt;br /&gt;    * Bruce Eckel, "Thinking in Java", latest edition.&lt;br /&gt;&lt;br /&gt;Latest version tested: JDK 1.6&lt;br /&gt;Last modified: September, 2010&lt;br /&gt;&lt;br /&gt;Feedback, comments, corrections, and errata can be sent to Chua Hock-Chuan (ehchua@ntu.edu.sg)   |   HOME&lt;br /&gt;&lt;br /&gt;What is Fibonacci Sequence?&lt;br /&gt;&lt;br /&gt;A series of whole numbers in which each number is the sum of the two preceding numbers.&lt;br /&gt;Beginning with 0 and 1, the sequence of Fibonacci numbers would be 0,1,1, 2, 3, 5, 8, 13, 21, 34, etc. using the formula n = n(-1) + n(-2), where the n(-1) means “the last number before n in the series” and n(-2) refers to “the second last one before n in the series.&lt;br /&gt;&lt;br /&gt;Example: The Fibonacci sequence starts with the numbers 0 and 1. The next number is the sum of these and subsequent numbers are the sum of the preceding pair. so we get 0,1,1,2,3,5....&lt;br /&gt;write a java program to display the first 20 fibonacci numbers using &lt;br /&gt;for loop statement&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;soln&lt;br /&gt;using FOR.LOOP.&lt;br /&gt;&lt;br /&gt;public class JavaFibonacciSeriesExample {&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;&lt;br /&gt;int limit = 20;&lt;br /&gt;long[] series = new long[limit];&lt;br /&gt;&lt;br /&gt;series[0] = 0;&lt;br /&gt;&lt;br /&gt;series[1] = 1;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;for(int i=2; i &lt; limit; i++){&lt;br /&gt;&lt;br /&gt;series[i] = series[i-1] + series[i-2];&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;System.out.println("Fibonacci Series upto " + limit);&lt;br /&gt;&lt;br /&gt;for(int i=0; i&lt; limit; i++){&lt;br /&gt;&lt;br /&gt;System.out.print(series[i] + " ");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Fibonacci Series upto 20&lt;br /&gt;&lt;br /&gt;0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;yet another insignificant programming notes...   |   HOME&lt;br /&gt;Java Programming&lt;br /&gt;Java Basics - Exercises&lt;br /&gt;Exercises on Flow Controls&lt;br /&gt;Exercises on Conditional (Decision)&lt;br /&gt;&lt;br /&gt;Exercise (if-else): Write a program called CheckMark which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise.&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class CheckMark {    // saved as "CheckMark.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int mark = 49;        // set the value of mark here!&lt;br /&gt;      System.out.println("The mark is " + mark);&lt;br /&gt;&lt;br /&gt;      if ( ...... ) {&lt;br /&gt;         System.out.println( ...... );&lt;br /&gt;      } else {&lt;br /&gt;         System.out.println( ...... );&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (if-else): Write a program called CheckNumber which prints "Odd Number" if the int variable “number” is odd, or “Even Number” otherwise.&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class CheckNumber {   // saved as "CheckNumber.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int number = 49;       // set the value of number here!&lt;br /&gt;      System.out.println("The number is " + number);&lt;br /&gt;      if ( ...... ) {&lt;br /&gt;         System.out.println( ...... );&lt;br /&gt;      } else {&lt;br /&gt;         System.out.println( ...... );&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (nested-if, switch-case): Write a program called PrintWord which prints "ONE", "TWO",... , "NINE", "OTHER" if the int variable "number" is 1, 2,... , 9 or other, respectively. Use (a) a "nested-if" statement; (b) a "switch-case" statement.&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class PrintWord {   // saved as "PrintWord.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int number = 5;&lt;br /&gt;   &lt;br /&gt;      // nested-if&lt;br /&gt;      if (number == 1) {&lt;br /&gt;         System.out.println("ONE");&lt;br /&gt;      } else if (......) {&lt;br /&gt;         ......&lt;br /&gt;      } else if (......) {&lt;br /&gt;         ......&lt;br /&gt;      } else {&lt;br /&gt;         ......&lt;br /&gt;      }&lt;br /&gt;      &lt;br /&gt;      // switch-case&lt;br /&gt;      switch(number) {&lt;br /&gt;         case 1: System.out.println("ONE"); break;&lt;br /&gt;         case 2: ......&lt;br /&gt;         ......&lt;br /&gt;         default: System.out.println("OTHER"); &lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Exercises on Loop (Iteration)&lt;br /&gt;&lt;br /&gt;Exercise (Loop): Write a program called SumAndAverage to produce the sum of 1, 2, 3, ..., to 100. Also compute and display the average. The output shall look like:&lt;br /&gt;&lt;br /&gt;The sum is 5050&lt;br /&gt;The average is 50.5&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class SumAndAverage {   // saved as "SumAndAverage.java"&lt;br /&gt;   public static void main (String[] args) {&lt;br /&gt;      int sum = 0;          // store the accumulated sum&lt;br /&gt;      double average;       // average in double&lt;br /&gt;      int lowerbound = 100; // the lower bound to sum&lt;br /&gt;      int upperbound = 100; // the upper bound to sum&lt;br /&gt;&lt;br /&gt;      for (int number = lowerbound; number &lt;= upperbound; number++) { // for loop&lt;br /&gt;         sum += number;     // same as "sum = sum + number"&lt;br /&gt;      }&lt;br /&gt;      // Compute average in double. Beware that int/int produces int.&lt;br /&gt;      ......&lt;br /&gt;      // Print sum and average.&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Try:&lt;br /&gt;&lt;br /&gt;   1. Modify the program to use a "while-do" loop instead of "for" loop.&lt;br /&gt;&lt;br /&gt;      int number = 1;&lt;br /&gt;      int sum = 0;&lt;br /&gt;      while (number &lt;= upperbound) {&lt;br /&gt;         sum += number;&lt;br /&gt;         number++;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;   2. Modify the program to use a "do-while" loop.&lt;br /&gt;&lt;br /&gt;      int number = 1;&lt;br /&gt;      int sum = 0;&lt;br /&gt;      do {&lt;br /&gt;         sum += number;&lt;br /&gt;         number++;&lt;br /&gt;      } while (number &lt;= upperbound);&lt;br /&gt;&lt;br /&gt;   3. Modify the program to sum from 111 to 8989, and compute the average. Introduce an int variable called count to count the numbers in the specified range.&lt;br /&gt;&lt;br /&gt;      int count = 0;&lt;br /&gt;      for (...; ...; ...) {&lt;br /&gt;         ......&lt;br /&gt;         count++;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;   4. Modify the program to sum only the odd numbers from 1 to 100, and compute the average.&lt;br /&gt;   5. Modify the program to sum those numbers from 1 to 100 that is divisible by 7, and compute the average.&lt;br /&gt;   6. Modify the program to find the "sum of the squares" of all the numbers from 1 to 100, i.e. 1*1 + 2*2 + 3*3 + ... + 100*100.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Loop): Write a program called Product1toN to compute the product of integers 1 to 10 (i.e., 123...10). Try computing the product from 1 to 11, 1 to 12, 1 to 13 and 1 to 14. Write down the product obtained and explain the results.&lt;br /&gt;&lt;br /&gt;Hints: Declares an int variable called product (to accumulate the product) and initialize to 1.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Loop): Write a program called HarmonicSum to compute the sum of a harmonic series, as shown below, where n=50000. The program shall compute the sum from left-to-right as well as from the right-to-left. Obtain the difference between these two sums and explain the difference. Which sum is more accurate?&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class HarmonicSum {   // saved as "HarmonicSum.java"&lt;br /&gt;   public static void main (String[] args) {&lt;br /&gt;      int maxDenominator = 50000;&lt;br /&gt;      double sumL2R = 0.0;    // sum from left-to-right&lt;br /&gt;      double sumR2L = 0.0;    // sum from right-to-left&lt;br /&gt;   &lt;br /&gt;      // for-loop for summing from left-to-right&lt;br /&gt;      for (int denominator = 1; denominator &lt;= maxDenominator; denominator++) {&lt;br /&gt;          ......&lt;br /&gt;          // Beware that int/int gives int.&lt;br /&gt;      }&lt;br /&gt;      // for-loop for summing from right-to-left&lt;br /&gt;      ......&lt;br /&gt;      // Find the difference and display&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Loop &amp; Condition): Write a program called ComputePI to compute the value of π, using the following series expansion. You have to decide on the termination criterion used in the computation (such as the number of terms used or the magnitude of an additional term). Is this series suitable for computing π?&lt;br /&gt;&lt;br /&gt;JDK maintains the value of π in a double constant called Math.PI. Compare the values obtained, in terms of the ratio between the value computed and the Math.PI, in percents.&lt;br /&gt;&lt;br /&gt;Hint: Add to sum if the denominator modulus 4 is 1, and subtract from sum if it is 3.&lt;br /&gt;&lt;br /&gt;double sum = 0;&lt;br /&gt;int maxDenom = 10000000;&lt;br /&gt;for (int denom = 1; ..... ; denom = denom + 2) {&lt;br /&gt;   if (denom % 4 == 1) {&lt;br /&gt;      sum += ......;&lt;br /&gt;   } else if (denom % 4 == 3) {&lt;br /&gt;      sum -= ......;&lt;br /&gt;   } else {&lt;br /&gt;      System.out.println("The computer has gone crazy?!");&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Loop &amp; Condition): Write a program called CozaLozaWoza which prints the number 1 to 110, 11 numbers per line. The program shall print "Coza" in place of the numbers which are multiples of 3, "Loza" for multiples of 5, "Woza" for multiples of 7, "CozaLoza" for multiples of 3 and 5, and so on. The output shall look like:&lt;br /&gt;&lt;br /&gt;1 2 Coza 4 Loza Coza Woza 8 Coza Loza 11 &lt;br /&gt;Coza 13 Woza CozaLoza 16 17 Coza 19 Loza CozaWoza 22 &lt;br /&gt;23 Coza Loza 26 Coza Woza 29 CozaLoza 31 32 Coza&lt;br /&gt;......&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class CozaLozaWoza {   // saved as "CozaLozaWoza.java"&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int lowerbound = 1;&lt;br /&gt;      int upperbound = 110;&lt;br /&gt;      for (int number = lowerbound; number &lt;= upperbound; number++) {&lt;br /&gt;         // Print "Coza" if number is divisible by 3&lt;br /&gt;         if (......) {   &lt;br /&gt;            System.out.print("Coza");&lt;br /&gt;         }&lt;br /&gt;         // Print "Loza" if number is divisible by 5&lt;br /&gt;         if (......) {&lt;br /&gt;            System.out.print(.....);&lt;br /&gt;         }&lt;br /&gt;         // Print "Woza" if number is divisible by 7&lt;br /&gt;         ......&lt;br /&gt;         // Print the number if it is not divisible by 3, 5 and 7&lt;br /&gt;         if (......) {&lt;br /&gt;            ......&lt;br /&gt;         }&lt;br /&gt;         // Print a space&lt;br /&gt;         ......&lt;br /&gt;         // Print a newline if number is divisible by 11&lt;br /&gt;         if (......) {&lt;br /&gt;            System.out.println();&lt;br /&gt;         }&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Loop): Write a program called Fibonacci to display the first 20 Fibonacci numbers F(n), where F(n)=F(n–1)+F(n–2) and F(1)=F(2)=1. Also compute their average. The output shall look like:&lt;br /&gt;&lt;br /&gt;The first 20 Fibonacci numbers are:&lt;br /&gt;1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765&lt;br /&gt;The average is 885.5&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class Fibonacci {&lt;br /&gt;   public static void main (String args[]) {&lt;br /&gt;      int n = 3;          // the index n for F(n), starting from n=3&lt;br /&gt;      int fn;             // F(n) to be computed&lt;br /&gt;      int fnMinus1 = 1;   // F(n-1), init to F(2)&lt;br /&gt;      int fnMinus2 = 1;   // F(n-2), init to F(1)&lt;br /&gt;      int nMax = 20;      // maximum n, inclusive&lt;br /&gt;      int sum = fnMinus1 + fnMinus2;&lt;br /&gt;      double average;&lt;br /&gt;   &lt;br /&gt;      System.out.println("The first " + nMax + " Fibonacci numbers are:");&lt;br /&gt;      ......&lt;br /&gt;   &lt;br /&gt;      while (n &lt;= nMax) {&lt;br /&gt;         // Compute F(n), print it and add to sum&lt;br /&gt;         ......&lt;br /&gt;         // Adjust the index n and shift the numbers&lt;br /&gt;         ......&lt;br /&gt;      }&lt;br /&gt;   &lt;br /&gt;      // Compute and display the average (=sum/nMax)&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Tribonacci numbers are a sequence of numbers T(n) similar to Fibonacci numbers, except that a number is formed by adding the three previous numbers, i.e., T(n)=T(n-1)+T(n-2)+T(n-3), T(1)=1, T(2)=1 and T(3)=2. Write a program called Tribonacci to produce the first twenty Tribonacci numbers.&lt;br /&gt;Exercises on Nested-Loop&lt;br /&gt;&lt;br /&gt;Exercise (nested-loop): Write a program called SquareBoard that displays the following 5x5 pattern using two nested for-loops.&lt;br /&gt;&lt;br /&gt;# # # # #&lt;br /&gt;# # # # #&lt;br /&gt;# # # # #&lt;br /&gt;# # # # #&lt;br /&gt;# # # # #&lt;br /&gt;&lt;br /&gt;Your program should use only two output statements, one each of the followings:&lt;br /&gt;&lt;br /&gt;System.out.print("# ");   // print "# ", without newline&lt;br /&gt;System.out.println();     // print a newline&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class SquareBoard {   // saved as "SquareBoard.java"&lt;br /&gt;   public static void main (String[] args) {&lt;br /&gt;      int size = 5;    // size of the board&lt;br /&gt;      for (int row = 1; ......; ......) {&lt;br /&gt;         for (int col = 1; ......; ......) {&lt;br /&gt;            ......&lt;br /&gt;         }&lt;br /&gt;         ......&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (nested-loop): Write a program called CheckerBoard that displays the following 7x7 checkerboard pattern using two nested for-loops.&lt;br /&gt;&lt;br /&gt;# # # # # # #&lt;br /&gt; # # # # # # #&lt;br /&gt;# # # # # # #&lt;br /&gt; # # # # # # #&lt;br /&gt;# # # # # # #&lt;br /&gt; # # # # # # #&lt;br /&gt;# # # # # # #&lt;br /&gt;&lt;br /&gt;Your program should use only three output statements, one each of the followings:&lt;br /&gt;&lt;br /&gt;System.out.print("# ");   // print "# ", without newline&lt;br /&gt;System.out.print(" ");    // print a space, without newline&lt;br /&gt;System.out.println();     // print a newline&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class CheckerBoard {   // saved as "CheckerBoard.java"&lt;br /&gt;   public static void main (String[] args) {&lt;br /&gt;      int size = 7;    // size of the board&lt;br /&gt;&lt;br /&gt;      for (int row = 1; ......; ......) {&lt;br /&gt;         // Use modulus 2 to find alternate lines&lt;br /&gt;         if ((row % 2) == 0) {   // row 2, 4, 6, 8&lt;br /&gt;            ......&lt;br /&gt;         }&lt;br /&gt;         for (int col = 1; ......; ......) {&lt;br /&gt;            ......&lt;br /&gt;         }&lt;br /&gt;         ......&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (nested-loop): Write a program called TimeTable to produce the multiplication table of 1 to 9 as shown using two nested for-loops:&lt;br /&gt;&lt;br /&gt; * |  1  2  3  4  5  6  7  8  9&lt;br /&gt;-------------------------------&lt;br /&gt; 1 |  1  2  3  4  5  6  7  8  9&lt;br /&gt; 2 |  2  4  6  8 10 12 14 16 18&lt;br /&gt; 3 |  3  6  9 12 15 18 21 24 27&lt;br /&gt; 4 |  4  8 12 16 20 24 28 32 36&lt;br /&gt; 5 |  5 10 15 20 25 30 35 40 45&lt;br /&gt; 6 |  6 12 18 24 30 36 42 48 54&lt;br /&gt; 7 |  7 14 21 28 35 42 49 56 63&lt;br /&gt; 8 |  8 16 24 32 40 48 56 64 72&lt;br /&gt; 9 |  9 18 27 36 45 54 63 72 81&lt;br /&gt;&lt;br /&gt;Modify the program to print the multiplication table of 1 to 12.&lt;br /&gt;Exercises on Input&lt;br /&gt;&lt;br /&gt;Exercise (Keyboard Input): Write a program called KeyboardInput to prompt user for an int, a double, and a String. The output shall look like (the inputs are shown in bold):&lt;br /&gt;&lt;br /&gt;Enter an integer: 12&lt;br /&gt;Enter a floating point number: 33.44&lt;br /&gt;Enter your name: Peter&lt;br /&gt;Hi! Peter, the sum of 12 and 33.44 is 45.44&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;import java.util.Scanner;    // needed to use Scanner for input&lt;br /&gt;public class KeyboardInput {&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      int num1;&lt;br /&gt;      double num2;&lt;br /&gt;      String name;&lt;br /&gt;      double sum;&lt;br /&gt;    &lt;br /&gt;      // Setup a Scanner called in to scan the keyboard (System.in)&lt;br /&gt;      Scanner in = new Scanner(System.in);&lt;br /&gt;      System.out.print("Enter an integer: ");&lt;br /&gt;      num1 = in.nextInt();     // use nextInt() to read int&lt;br /&gt;      System.out.print("Enter a floating point number: ");&lt;br /&gt;      num2 = in.nextDouble();  // use nextDouble() to read double&lt;br /&gt;      System.out.print("Enter your name: ");&lt;br /&gt;      name = in.next();        // use next() to read String&lt;br /&gt;   &lt;br /&gt;      // Display&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (File Input): Write a program called FileInput to read an int, a double, and a String form a text file called "in.txt", and produce the following output:&lt;br /&gt;&lt;br /&gt;The integer read is 12&lt;br /&gt;The floating point number read is 33.44&lt;br /&gt;The String read is "Peter"&lt;br /&gt;Hi! Peter, the sum of 12 and 33.44 is 45.44&lt;br /&gt;&lt;br /&gt;You need to create a text file called "in.txt" (in Eclipse, right-click on the "project" ⇒ "New" ⇒ "File") with the following contents:&lt;br /&gt;&lt;br /&gt;12&lt;br /&gt;33.44&lt;br /&gt;Peter&lt;br /&gt;&lt;br /&gt;import java.util.Scanner;              // Needed to use Scanner for input&lt;br /&gt;import java.io.File;                   // Needed to use File&lt;br /&gt;import java.io.FileNotFoundException;  // Needed for file operation&lt;br /&gt;   &lt;br /&gt;public class FileInput { &lt;br /&gt;   public static void main(String[] args) &lt;br /&gt;         throws FileNotFoundException {  // Needed for file operation&lt;br /&gt;      int num1;&lt;br /&gt;      double num2;&lt;br /&gt;      String name;&lt;br /&gt;      double sum;&lt;br /&gt;   &lt;br /&gt;      // Setup a Scanner to read from a text file&lt;br /&gt;      Scanner in = new Scanner(new File("in.txt"));&lt;br /&gt;      num1 = in.nextInt();      // use nextInt() to read int&lt;br /&gt;      num2 = in.nextDouble();   // use nextDouble() to read double&lt;br /&gt;      name = in.next();         // use next() to read String&lt;br /&gt;   &lt;br /&gt;      // Display&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (User Input): Write a program called CircleComputation, which prompts user for a radius and compute the area and perimeter of a circle. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the radius: 1.2&lt;br /&gt;The area is 4.5239&lt;br /&gt;The perimeter is 7.5398223686155035&lt;br /&gt;&lt;br /&gt;Hints: π is kept in a constant called Math.PI.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (User Input &amp; String Operations): Write a program called ReverseString, which prompts user for a String, and prints the reverse of the String. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter a String: abcdef&lt;br /&gt;The reverse of String "abcdef" is "fedcba".&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;import java.util.Scanner;&lt;br /&gt;public class ReverseString {&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      String inStr;        // input String&lt;br /&gt;      int inStrLen;        // length of the input String&lt;br /&gt;   &lt;br /&gt;      Scanner in = new Scanner(System.in);&lt;br /&gt;      System.out.print("Enter a String: ");&lt;br /&gt;      inStr = in.next();   // use next() to read String&lt;br /&gt;      inStrLen = inStr.length();&lt;br /&gt;   &lt;br /&gt;      // Use inStr.charAt(index) to extract character at 'index' from inStr&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;For a String called inStr, you can use inStr.length() to retrieve the length of the String; and inStr.charAt(index) to retrieve the char at the index position, where index begins with 0.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (User Input &amp; String Operations): On your phone keypad, the alphabets are mapped to digits as follows: ABC(2), DEF(3), GHI(4), JKL(5), MNO(6), PQRS(7), TUV(8), WXYZ(9).&lt;br /&gt;&lt;br /&gt;Write a program called PhoneKeyPad, which prompts user for a string (case insensitive), and converts to a sequence of digits. Use a nested-if in this exercise. Modify your program to use an array for table look-up later.&lt;br /&gt;&lt;br /&gt;Hints: You can use in.next().toLowerCase() to read a string and convert it to lowercase to reduce your cases.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Palindrome): A word that reads the same backward as forward is called a palindrome, e.g., "mom", "dad", "racecar", "madam", and "Radar" (case-insensitive). Write a program called TestPalindromicWord, that prompts user for a word and prints ""xxx" is|is not a palindrome".&lt;br /&gt;&lt;br /&gt;Hints: Read in a word and convert to lowercase via in.next().toLowercase().&lt;br /&gt;&lt;br /&gt;A phrase that reads the same backward as forward is also called a palindrome, e.g., "Madam, I'm Adam", "A man, a plan, a canal - Panama!" (ignoring punctuation and capitalization). Modify your program (called TestPalindromicPhrase) to test palindromic phrase.&lt;br /&gt;&lt;br /&gt;Hints: Read in the lowercase phrase via in.nextLine().toLowercase(). Maintain two indexes, forwardIndex and backwardIndex, used to scan the phrase forward and backward.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Bin2Dec): Write a program called Bin2Dec to convert a binary string into its equivalent decimal number. Your output shall look like:&lt;br /&gt;&lt;br /&gt;Enter a Binary string: 1011&lt;br /&gt;The equivalent decimal number for binary "1011" is 11&lt;br /&gt;   &lt;br /&gt;Enter a Binary string: 1234&lt;br /&gt;Error: Invalid Binary String "1234"&lt;br /&gt;&lt;br /&gt;Hints: For a n-bit binary number bn-1bn-2...b1b0, bi∈{0,1}, the equivalent decimal number is bn-1×2n-1+bn-2×2n-2+ ...+b1×21+b0×20.&lt;br /&gt;&lt;br /&gt;import java.util.Scanner;&lt;br /&gt;public class Bin2Dec {&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      String binStr;    // input binary string&lt;br /&gt;      int binStrLen;    // length of the input string&lt;br /&gt;      int dec = 0;      // equivalent decimal number&lt;br /&gt;      char binChar;     // each individual char in the binary string&lt;br /&gt;    &lt;br /&gt;      Scanner in = new Scanner(System.in);&lt;br /&gt;   &lt;br /&gt;      // Read input binary string&lt;br /&gt;      ......&lt;br /&gt;   &lt;br /&gt;      // Convert binary string into Decimal&lt;br /&gt;      ......&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You can use JDK method Math.pow(x, y) to compute the x raises to the power of y. This method takes two doubles as argument and returns a double. You may have to cast the result back to int.&lt;br /&gt;&lt;br /&gt;To convert a char (of digit '0' to '9') to int, simply subtract by '0', e.g., '5'-'0'→5.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Hex2Dec): Write a program called HexToDec to convert a hexadecimal string into its equivalent decimal number. Your output shall look like:&lt;br /&gt;&lt;br /&gt;Enter a Hexadecimal string: 1a&lt;br /&gt;The equivalent decimal number for hexadecimal "1a" is 26&lt;br /&gt;   &lt;br /&gt;Enter a Hexadecimal string: 1y3&lt;br /&gt;Error: Invalid Hexadecimal String "1y3"&lt;br /&gt;&lt;br /&gt;Hints: For a n-digit hexadecimal number hn-1hn-2...h1h0, hi∈{0,…,9,A,…,F}, the equivalent decimal number is hn-1×16n-1+hn-2×16n-2+ ...+h1×161+h0×160.&lt;br /&gt;&lt;br /&gt;You do not need a big nested-if statement of 16 cases (or 22 with upper and lower letters). Extract the individual character from the hexadecimal string, says c. If char c is between '0' to '9', you can get the integer offset via c-'0'. If c is between 'a' to 'f' or 'A' to 'F', the integer offset is c-'a'+10 or c-'A'+10.&lt;br /&gt;&lt;br /&gt;String hexStr;&lt;br /&gt;char hexChar;&lt;br /&gt;......&lt;br /&gt;hexChar = hexStr.charAt(i);&lt;br /&gt;......&lt;br /&gt;if (hexChar &gt;= '0' &amp;&amp; hexChar &lt;= '9') {&lt;br /&gt;   ... (hexChar-'0') ...&lt;br /&gt;   ...&lt;br /&gt;} else if (hexChar &gt;= 'a' &amp;&amp; hexChar &lt;= 'f') {   // lowercase&lt;br /&gt;   ... (hexChar-'a'+10) ...&lt;br /&gt;   ...&lt;br /&gt;} else if (hexChar &gt;= 'A' &amp;&amp; hexChar &lt;= 'F') {   // uppercase&lt;br /&gt;   ... (hexChar-'A'+10) ...&lt;br /&gt;   ...&lt;br /&gt;} else {&lt;br /&gt;   System.out.println("Error: Invalid hexadecimal string");&lt;br /&gt;   System.exit(1);    // quit the program&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Exercises on Array&lt;br /&gt;&lt;br /&gt;Exercise (Array): Write a program called GradesAverage, which reads in n grades (of int between 0 and 100) and displays the average. You should keep the grades in an int[] (an array of int). Your output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the number of students: 3&lt;br /&gt;Enter the grade for student 1: 55&lt;br /&gt;Enter the grade for student 2: 108&lt;br /&gt;Invalid grade, try again...&lt;br /&gt;Enter the grade for student 2: 56&lt;br /&gt;Enter the grade for student 3: 57&lt;br /&gt;The average is 56.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Array): Write a program called Hex2Bin to convert a hexadecimal string into its equivalent binary string. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter a Hexadecimal string: 1abc&lt;br /&gt;The equivalent binary for hexadecimal "1abc" is 0001 1010 1011 1100&lt;br /&gt;&lt;br /&gt;Hints: Use an array of 16 binary Strings corresponding to hexadecimal number '0' to 'F', as follows:&lt;br /&gt;&lt;br /&gt;String[] hexBits = {"0000", "0001", "0010", "0011",&lt;br /&gt;                    "0100", "0101", "0110", "0111",&lt;br /&gt;                    "1000", "1001", "1010", "1011",&lt;br /&gt;                    "1100", "1101", "1110", "1111"}&lt;br /&gt;&lt;br /&gt;Exercises on Command-line Arguments&lt;br /&gt;&lt;br /&gt;Exercise (Command-line arguments): Write a Java program called Arithmetic that takes three command-line arguments: two integers followed by an arithmetic operator (+, -, * or /). The program shall perform the corresponding operation on the two integers and print the result. For example:&lt;br /&gt;&lt;br /&gt;&gt; java Arithmetic 3 2 +&lt;br /&gt;3+2=5&lt;br /&gt;   &lt;br /&gt;&gt; java Arithmetic 3 2 -&lt;br /&gt;3-2=1&lt;br /&gt;   &lt;br /&gt;&gt; java Arithmetic 3 2 /&lt;br /&gt;3/2=1&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;The method main(String[] args) has a parameter: "an array of String", which is often (but not necessary) named args. This parameter captures the command-line arguments supplied by the user when the program is invoked. For example, if a user invokes:&lt;br /&gt;&lt;br /&gt;&gt; java Arithmetic 12345 4567 +&lt;br /&gt;&lt;br /&gt;The three command-line arguments "12345", "4567" and "+" will be captured in a String array and passed into the main() method as parameter args. That is,&lt;br /&gt;&lt;br /&gt;args is {"12345", "4567", "+"};  // args is a String array&lt;br /&gt;args.length is 3;                // length of the array&lt;br /&gt;args[0] is "12345";              // 1st element of the String array&lt;br /&gt;args[1] is "4567";               // 2nd element of the String array&lt;br /&gt;args[2] is "+";                  // 3rd element of the String array&lt;br /&gt;args[0].length() is 5;           // length of 1st String element&lt;br /&gt;args[1].length() is 4;           // length of the 2nd String element&lt;br /&gt;args[2].length() is 1;           // length of the 3rd String element&lt;br /&gt;&lt;br /&gt;public class Arithmetic {&lt;br /&gt;  public static void main (String[] args) {&lt;br /&gt;    int operand1, operand2;&lt;br /&gt;    char theOperator;&lt;br /&gt;  &lt;br /&gt;    // Check if there are 3 command-line arguments in the&lt;br /&gt;    //  String array args[] by using length variable of array.&lt;br /&gt;    if (args.length != 3) {&lt;br /&gt;      System.err.println("Usage: java Arithmetic int1 int2 op");&lt;br /&gt;      return;&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    // Convert the 3 Strings args[0], args[1], args[2] to int and char.&lt;br /&gt;    // Use the Integer.parseInt(aStr) to convert a String to an int.&lt;br /&gt;    operand1 = Integer.parseInt(args[0]);&lt;br /&gt;    operand2 = ......&lt;br /&gt;   &lt;br /&gt;    // Get the operator, assumed to be the first character of&lt;br /&gt;    //  the 3rd string. Use method charAt() of String.&lt;br /&gt;    theOperator = args[2].charAt(0);&lt;br /&gt;    System.out.print(args[0] + args[2] + args[1] + "=");&lt;br /&gt;   &lt;br /&gt;    switch(theOperator) {&lt;br /&gt;      case ('-'):&lt;br /&gt;        System.out.println(operand1 – operand2); break;&lt;br /&gt;      case ('+'):  ......&lt;br /&gt;      case ('*'):  ......&lt;br /&gt;      case ('/'):  ......&lt;br /&gt;      default:&lt;br /&gt;        System.err.println("\nError: invalid operator!"); &lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;&lt;br /&gt;    * To provide command-line arguments, use the "cmd" shell to run your program in the form "java ClassName arg1 arg2 ....".&lt;br /&gt;    * To provide command-line arguments in Eclipse, right click the source code ⇒ "Run As" ⇒ "Run Configurations..." ⇒ Select "Main" and choose the proper main class ⇒ Select "Arguments" ⇒ Enter the command-line arguments, e.g., "3 2 +" in "Program Arguments".&lt;br /&gt;    * To provide command-line arguments in Netbeans, right click the "Project" name ⇒ "Set Configuration" ⇒ "Customize..." ⇒ Select categories "Run" ⇒ Enter the command-line arguments, e.g., "3 2 +" in the "Arguments" box (but make sure you select the proper Main class).&lt;br /&gt;&lt;br /&gt;Question: Try "java Arithmetic 2 4 *" (in CMD shell and Eclipse/Netbeans) and explain the result obtained. How to resolve this problem?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Command-line arguments): Write a Java program called SumDigits to sum up the individual digits of a positive integer, given in the command line. The output shall look like:&lt;br /&gt;&lt;br /&gt;&gt; java SumDigits 12345&lt;br /&gt;The sum of digits = 1 + 2 + 3 + 4 + 5 = 15&lt;br /&gt;&lt;br /&gt;Exercises on Method&lt;br /&gt;&lt;br /&gt;Exercise (Method): Write a program called GradesStatistics, which reads in n grades (of int between 0 and 100, inclusive) and displays the average, minimum, maximum, and standard deviation. Your program shall check for valid input. You should keep the grades in an int[] and use a method for each of the computations. Your output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the number of students: 4&lt;br /&gt;Enter the grade for student 1: 50&lt;br /&gt;Enter the grade for student 2: 51&lt;br /&gt;Enter the grade for student 3: 56&lt;br /&gt;Enter the grade for student 4: 53&lt;br /&gt;The average is 52.5&lt;br /&gt;The minimum is 50&lt;br /&gt;The maximum is 56&lt;br /&gt;The standard deviation is 2.29128784747792&lt;br /&gt;&lt;br /&gt;Hints: The formula for calculating standard deviation is:&lt;br /&gt;&lt;br /&gt;public class GradesStatistics {&lt;br /&gt;   public static int[] grades;  // Declare an int[], to be allocated later&lt;br /&gt;   &lt;br /&gt;   // main() method&lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      readGrades();&lt;br /&gt;      System.out.println("The average is " + average());&lt;br /&gt;      System.out.println("The minimum is " + min());&lt;br /&gt;      System.out.println("The maximum is " + max());&lt;br /&gt;      System.out.println("The standard deviation is " + stdDev());&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;   // Prompt user for the number of students and allocate the "grades" array.&lt;br /&gt;   // Then, prompt user for grade, check for valid grade, and store in "grades".&lt;br /&gt;   public static void readGrades() { ....... }&lt;br /&gt;   &lt;br /&gt;   // Return the average value of int[] grades&lt;br /&gt;   public static double average() { ...... }&lt;br /&gt;   &lt;br /&gt;   // Return the maximum value of int[] grades&lt;br /&gt;   public static int max() { ...... }&lt;br /&gt;   &lt;br /&gt;   // Return the minimum value of int[] grades&lt;br /&gt;   public static int min() { ....... }&lt;br /&gt;   &lt;br /&gt;   // Return the standard deviation of the int[] grades&lt;br /&gt;   public static double stdDev() { ....... }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Method): Write a program called GradesHistogram, which reads in n grades (of int between 0 and 100, inclusive) from a text file called "grades.in" and displays the histogram. The file has the following format:&lt;br /&gt;&lt;br /&gt;numStduents:int&lt;br /&gt;grade1:int grade2:int .... gradeN:int&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;15&lt;br /&gt;49 50 51 59 0 5 9 10 15 19 50 55 89 99 100&lt;br /&gt;&lt;br /&gt;The output shall consist of a horizontal histogram and a vertical histogram as follows:&lt;br /&gt;&lt;br /&gt;  0 -  9: ***&lt;br /&gt; 10 - 19: ***&lt;br /&gt; 20 - 29: &lt;br /&gt; 30 - 39: &lt;br /&gt; 40 - 49: *&lt;br /&gt; 50 - 59: *****&lt;br /&gt; 60 - 69: &lt;br /&gt; 70 - 79: &lt;br /&gt; 80 - 89: *&lt;br /&gt; 90 -100: **&lt;br /&gt;&lt;br /&gt;                                *                           &lt;br /&gt;                                *                           &lt;br /&gt;  *     *                       *                           &lt;br /&gt;  *     *                       *                       *   &lt;br /&gt;  *     *                 *     *                 *     *   &lt;br /&gt; 0-9  10-19 20-29 30-39 40-49 50-59 60-69 70-79 80-89 90-100&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class GradesHistogram {&lt;br /&gt;   public static int[] grades;&lt;br /&gt;      // Declare an int array of grades, to be allocated later&lt;br /&gt;   public static int[] bins = new int[10];&lt;br /&gt;      // Declare and allocate an int array for histogram bins.&lt;br /&gt;      // 10 bins for 0-9, 10-19,...., 90-100&lt;br /&gt;   &lt;br /&gt;   public static void main(String[] args) {&lt;br /&gt;      readGrades("grades.in");&lt;br /&gt;      computeHistogram();&lt;br /&gt;      printHistogramHorizontal();&lt;br /&gt;      printHistogramVertical();&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;   // Read the grades from "filename", store in "grades" array.&lt;br /&gt;   // Assume that the inputs are valid.&lt;br /&gt;   public static void readGrades(String filename) { ...... }&lt;br /&gt;&lt;br /&gt;   // Based on "grades" array, populate the "bins" array.&lt;br /&gt;   public static void computeHistogram() { ....... }&lt;br /&gt;&lt;br /&gt;   // Print histogram based on the "bins" array.&lt;br /&gt;   public static void printHistogramHorizontal() { ...... }&lt;br /&gt;&lt;br /&gt;   // Print histogram based on the "bins" array.&lt;br /&gt;   public static void printHistogramVertical() { ...... }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Method): Write a method called reverseArray() with the following signature:&lt;br /&gt;&lt;br /&gt;public static void reverseArray(int[] intArray)&lt;br /&gt;&lt;br /&gt;The method accepts an int array, and reverses its orders. For example, if the input array is {12, 56, 34, 79, 26}, the reversal is {26, 79, 34, 56, 12}. You MUST NOT use another array in your method (but you need a temporary variable to do the swap). Also write a test class called ReverseArrayTest to test this method. Take note that the array passed into the method can be modified by the method (this is called "pass by reference"). On the other hand, primitives passed into a method cannot be modified. This is because a clone is created and passed into the method instead of the original copy (this is called "pass by value").&lt;br /&gt;More Basic Java Exercises&lt;br /&gt;&lt;br /&gt;Exercise (JDK Source Code): Extract the source code of the class Math from the JDK source code ("$JAVA_HOME" ⇒ "src.zip" ⇒ "Math.java" under folder "java.lang"). Study how constants such as E and PI are defined. Also study how methods such as abs(), max(), min(), toDegree(), etc, are written.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Matrix Operation): Similar to Math class, write a Matrix library that supports matrix operations (such as addition, subtraction, multiplication) via 2D arrays. The operations shall support both doubles and ints. Also write a test class to exercise all the operations programmed.&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;public class Matrix {&lt;br /&gt;   public static void printMatrix(int[][] m) { ...... }&lt;br /&gt;   public static void printMatrix(double[][] m) { ...... }&lt;br /&gt;   public static boolean haveSameDimension(int[][] m1, int[][] m2) { ...... }&lt;br /&gt;   public static boolean haveSameDimension(double[][] m1, double[][] m2) { ...... }&lt;br /&gt;   public static int[][] add(int[][] m1, int[][] m2) { ...... }&lt;br /&gt;   public static double[][] add(double[][] m1, double[][] m2) { ...... }&lt;br /&gt;   ......&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Special Characters and Escape Sequences): Write a program called PrintAnimalPattern, which uses println() to produce this pattern:&lt;br /&gt;&lt;br /&gt;          '__'&lt;br /&gt;          (©©)&lt;br /&gt;  /========\/&lt;br /&gt; / || %% ||&lt;br /&gt;*  ||----||&lt;br /&gt;   ¥¥    ¥¥&lt;br /&gt;   ""    ""&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;    * Use escape sequence \uhhhh where hhhh are four hex digits to display Unicode characters such as ¥ and ©. ¥ is 165 (00A5H) and © is 169 (00A9H) in both ISO-8859-1 (Latin-1) and Unicode character sets.&lt;br /&gt;    * Double-quote (") and black-slash (\) require escape sign inside a String. Single quote (') does not require escape sign.&lt;br /&gt;&lt;br /&gt;Print the same pattern using printf(). Hints: Need to use %% to print a % in printf() because % is the suffix for format specifier.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Print Pattern using nested-loop): Write a method to print each of the followings patterns using nested loops in a class called PrintPattern. The signatures of the methods are:&lt;br /&gt;&lt;br /&gt;public static void printPatternX(int size)  // 'X' from 'A' to ..., size is a positive integer.&lt;br /&gt;&lt;br /&gt;#                    # # # # # # # #      # # # # # # # #                    #&lt;br /&gt;# #                  # # # # # # #          # # # # # # #                  # #&lt;br /&gt;# # #                # # # # # #              # # # # # #                # # #&lt;br /&gt;# # # #              # # # # #                  # # # # #              # # # #&lt;br /&gt;# # # # #            # # # #                      # # # #            # # # # #&lt;br /&gt;# # # # # #          # # #                          # # #          # # # # # #&lt;br /&gt;# # # # # # #        # #                              # #        # # # # # # #&lt;br /&gt;# # # # # # # #      #                                  #      # # # # # # # #&lt;br /&gt;     (a)                   (b)                  (c)                  (d)&lt;br /&gt;   &lt;br /&gt;Hints: On the diagonal, row = col.  On the opposite diagonal, row + col = size + 1.&lt;br /&gt;   &lt;br /&gt;# # # # # # #    # # # # # # #    # # # # # # #    # # # # # # #    # # # # # # #&lt;br /&gt;#           #      #                        #        #       #      # #       # #&lt;br /&gt;#           #        #                    #            #   #        #   #   #   #&lt;br /&gt;#           #          #                #                #          #     #     #&lt;br /&gt;#           #            #            #                #   #        #   #   #   #&lt;br /&gt;#           #              #        #                #       #      # #       # #&lt;br /&gt;# # # # # # #    # # # # # # #    # # # # # # #    # # # # # # #    # # # # # # #&lt;br /&gt;     (e)               (f)             (g)              (h)              (i)&lt;br /&gt;   &lt;br /&gt;# # # # # # # # # # #                #                          #&lt;br /&gt;  # # # # # # # # #                # # #                      # # #&lt;br /&gt;    # # # # # # #                # # # # #                  # # # # #&lt;br /&gt;      # # # # #                # # # # # # #              # # # # # # #&lt;br /&gt;        # # #                # # # # # # # # #          # # # # # # # # #&lt;br /&gt;          #                # # # # # # # # # # #      # # # # # # # # # # #&lt;br /&gt;         (j)                        (k)                 # # # # # # # # #&lt;br /&gt;                                                          # # # # # # #&lt;br /&gt;                                                            # # # # #&lt;br /&gt;                                                              # # #&lt;br /&gt;                                                                #&lt;br /&gt;                                                               (l)&lt;br /&gt;   &lt;br /&gt;1                    1 2 3 4 5 6 7 8                    1      8 7 6 5 4 3 2 1&lt;br /&gt;1 2                    1 2 3 4 5 6 7                  2 1      7 6 5 4 3 2 1&lt;br /&gt;1 2 3                    1 2 3 4 5 6                3 2 1      6 5 4 3 2 1&lt;br /&gt;1 2 3 4                    1 2 3 4 5              4 3 2 1      5 4 3 2 1&lt;br /&gt;1 2 3 4 5                    1 2 3 4            5 4 3 2 1      4 3 2 1&lt;br /&gt;1 2 3 4 5 6                    1 2 3          6 5 4 3 2 1      3 2 1&lt;br /&gt;1 2 3 4 5 6 7                    1 2        7 6 5 4 3 2 1      2 1&lt;br /&gt;1 2 3 4 5 6 7 8                    1      8 7 6 5 4 3 2 1      1&lt;br /&gt;     (m)                  (n)                    (o)                (p)&lt;br /&gt;   &lt;br /&gt;              1                    1 2 3 4 5 6 7 8 7 6 5 4 3 2 1&lt;br /&gt;            1 2 1                    1 2 3 4 5 6 7 6 5 4 3 2 1&lt;br /&gt;          1 2 3 2 1                    1 2 3 4 5 6 5 4 3 2 1&lt;br /&gt;        1 2 3 4 3 2 1                    1 2 3 4 5 4 3 2 1&lt;br /&gt;      1 2 3 4 5 4 3 2 1                    1 2 3 4 3 2 1&lt;br /&gt;    1 2 3 4 5 6 5 4 3 2 1                    1 2 3 2 1&lt;br /&gt;  1 2 3 4 5 6 7 6 5 4 3 2 1                    1 2 1&lt;br /&gt;1 2 3 4 5 6 7 8 7 6 5 4 3 2 1                    1&lt;br /&gt;             (q)                                (r)&lt;br /&gt;   &lt;br /&gt;1                           1      1 2 3 4 5 6 7 8 7 6 5 4 3 2 1&lt;br /&gt;1 2                       2 1      1 2 3 4 5 6 7   7 6 5 4 3 2 1&lt;br /&gt;1 2 3                   3 2 1      1 2 3 4 5 6       6 5 4 3 2 1&lt;br /&gt;1 2 3 4               4 3 2 1      1 2 3 4 5           5 4 3 2 1&lt;br /&gt;1 2 3 4 5           5 4 3 2 1      1 2 3 4               4 3 2 1&lt;br /&gt;1 2 3 4 5 6       6 5 4 3 2 1      1 2 3                   3 2 1&lt;br /&gt;1 2 3 4 5 6 7   7 6 5 4 3 2 1      1 2                       2 1&lt;br /&gt;1 2 3 4 5 6 7 8 7 6 5 4 3 2 1      1                           1&lt;br /&gt;             (s)                                (t)&lt;br /&gt;   &lt;br /&gt;              1&lt;br /&gt;            2 3 2&lt;br /&gt;          3 4 5 4 3&lt;br /&gt;        4 5 6 7 6 5 4&lt;br /&gt;      5 6 7 8 9 8 7 6 5&lt;br /&gt;    6 7 8 9 0 1 0 9 8 7 6&lt;br /&gt;  7 8 9 0 1 2 3 2 1 0 9 8 7 &lt;br /&gt;8 9 0 1 2 3 4 5 4 3 2 1 0 9 8&lt;br /&gt;             (u)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Print Pattern using nested-loop): Write a method to print each of the following patterns using nested-loops in a class called PrintTriangle. The signatures of the methods are:&lt;br /&gt;&lt;br /&gt;public static void printXxx(int numRows)  // Xxx is the pattern's name&lt;br /&gt;&lt;br /&gt;Write the main() which prompts the user for the numRows and prints all the patterns.&lt;br /&gt;&lt;br /&gt;                            1&lt;br /&gt;                        1   2   1&lt;br /&gt;                    1   2   4   2   1&lt;br /&gt;                1   2   4   8   4   2   1&lt;br /&gt;            1   2   4   8  16   8   4   2   1&lt;br /&gt;        1   2   4   8  16  32  16   8   4   2   1&lt;br /&gt;    1   2   4   8  16  32  64  32  16   8   4   2   1&lt;br /&gt;1   2   4   8  16  32  64 128  64  32  16   8   4   2   1&lt;br /&gt;                  (a) PowerOf2Triangle&lt;br /&gt;  &lt;br /&gt;1                                      1&lt;br /&gt;1  1                                 1   1&lt;br /&gt;1  2  1                            1   2   1&lt;br /&gt;1  3  3  1                       1   3   3   1&lt;br /&gt;1  4  6  4  1                  1   4   6   4   1&lt;br /&gt;1  5 10 10  5  1             1   5  10  10   5   1&lt;br /&gt;1  6 15 20 15  6  1        1   6  15  20  15   6   1&lt;br /&gt;(b) PascalTriangle1           (c) PascalTriangle2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Series): Write a method to compute sin(x) and cos(x) using the following series expansion, in a class called TrigonometricSeries. The headers of the methods are:&lt;br /&gt;&lt;br /&gt;public static double sin(double x, int numTerms)   // x in radians&lt;br /&gt;public static double cos(double x, int numTerms)&lt;br /&gt;&lt;br /&gt;Compare the values computed using the series with the JDK methods Math.sin(), Math.cos() at x=0, π/6, π/4, π/3, π/2 using various numbers of terms.&lt;br /&gt;&lt;br /&gt;Hints: Avoid generating large numerator and denominator (which may cause arithmetic overflow, e.g., 13! is out of int range). Compute the terms as:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Series): Write a method to compute the sum of the series in a class called Series. The signature of the method is:&lt;br /&gt;&lt;br /&gt;public static double sumOfSeries(double x, int numTerms)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Fibonacci Number &amp; Overflow) : Write a program called FibonacciInt to list all the Fibonacci numbers, which can be expressed as an int (i.e., 32-bit signed integer in the range of [-2147483648, 2147483647]). The output shall look like:&lt;br /&gt;&lt;br /&gt;F(0) = 1&lt;br /&gt;F(1) = 1&lt;br /&gt;F(2) = 2&lt;br /&gt;...&lt;br /&gt;F(45) = 1836311903&lt;br /&gt;F(46) is out of the range of int&lt;br /&gt;&lt;br /&gt;Hints: The maximum and minimum values of a 32-bit int are kept in constants Integer.MAX_VALUE and Integer.MIN_VALUE, respectively. Try these statements:&lt;br /&gt;&lt;br /&gt;System.out.println(Integer.MAX_VALUE);&lt;br /&gt;System.out.println(Integer.MIN_VALUE);&lt;br /&gt;System.out.println(Integer.MAX_VALUE + 1);&lt;br /&gt;&lt;br /&gt;Take note that in the third statement, Java Runtime does not flag out an overflow error, but silently wraps the number around. Hence, you cannot use F(n-1) + F(n-2) &gt; Integer.MAX_VALUE to check for overflow. Instead, overflow occurs for F(n) if (Integer.MAX_VALUE – F(n-1)) &lt; F(n-2) (i.e., no room for the next Fibonacci number).&lt;br /&gt;&lt;br /&gt;Write a similar program for Tribonacci numbers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Factorial &amp; Overflow): Write a program called Factorial1to10, to compute the factorial of n, for 1≤n≤10. Your output shall look like:&lt;br /&gt;&lt;br /&gt;The factorial of 1 is 1&lt;br /&gt;The factorial of 2 is 2&lt;br /&gt;...&lt;br /&gt;The factorial of 10 is 3628800&lt;br /&gt;&lt;br /&gt;Modify your program (called FactorialInt), to list all the factorials, that can be expressed as an int (i.e., 32-bit signed integer). Your output shall look like:&lt;br /&gt;&lt;br /&gt;The factorial of 1 is 1&lt;br /&gt;The factorial of 2 is 2&lt;br /&gt;...&lt;br /&gt;The factorial of 12 is 479001600&lt;br /&gt;The factorial of 13 is out of range&lt;br /&gt;&lt;br /&gt;Hints: Overflow occurs for Factorial(n+1) if (Integer.MAX_VALUE / Factorial(n)) &lt; (n+1).&lt;br /&gt;&lt;br /&gt;Modify your program again (called FactorialLong) to list all the factorials that can be expressed as a long (64-bit signed integer). The maximum value for long is kept in a constant called Long.MAX_VALUE.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Number Systems Conversion): Write a method call toRadix() which converts a positive integer from one radix into another. The method has the following header:&lt;br /&gt;&lt;br /&gt;public static String toRadix(String in, int inRadix, int outRadix)  // The input and output are treated as String.&lt;br /&gt;&lt;br /&gt;Write a program called NumberConvert, which prompts the user for an input number, an input radix, and an output radix, and display the converted number. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter a number and radix: A1B2&lt;br /&gt;Enter the input radix: 16&lt;br /&gt;Enter the output radix: 2&lt;br /&gt;"A1B2" in radix 16 is "1010000110110010" in radix 2.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example: Java code to print prime numbers from 1 to 100&lt;br /&gt;Answer:&lt;br /&gt;  Improve&lt;br /&gt;import java.io.*;&lt;br /&gt;class prmNo&lt;br /&gt;{&lt;br /&gt;public static void main(String[] args)&lt;br /&gt;{&lt;br /&gt;Console con = System.console();&lt;br /&gt;System.out.println("Enter length of list :");&lt;br /&gt;int n = con.readLine();&lt;br /&gt;boolean flag;&lt;br /&gt;System.out.print("1 ");&lt;br /&gt;for (int i=2;i&lt;=n;i++)&lt;br /&gt;{&lt;br /&gt;for (int j=2;j&lt;i;j++)&lt;br /&gt;{&lt;br /&gt;if (i%j==0)&lt;br /&gt;flag=true;&lt;br /&gt;}&lt;br /&gt;if(!flag)&lt;br /&gt;System.out.print(i+ " ");&lt;br /&gt;flag=false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Guess a Number): Write a Java program called NumberGuess to play the number guessing game. The program shall generate a random number between 0 and 99. The player inputs his/her guess, and the program shall response with "Try higher", "Try lower" or "You got it in n trials" accordingly. For example:&lt;br /&gt;&lt;br /&gt;&gt; java NumberGuess&lt;br /&gt;Key in your guess:&lt;br /&gt;50&lt;br /&gt;Try higher&lt;br /&gt;70&lt;br /&gt;Try lower&lt;br /&gt;65&lt;br /&gt;Try lower&lt;br /&gt;"&lt;br /&gt;You got it in 4 trials!&lt;br /&gt;&lt;br /&gt;Hints: Use Math.random() to produce a random number in double between 0.0 and (less than) 1.0. To produce an int between 0 and 99, use:&lt;br /&gt;&lt;br /&gt;int secretNumber = (int)(Math.random()*100);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Guess a Word): Write a program called WordGuess to guess a word by trying to guess the individual characters. The word to be guessed shall be provided using the command-line argument. Your program shall look like:&lt;br /&gt;&lt;br /&gt; java WordGuess testing&lt;br /&gt;Key in one character or your guess word: t&lt;br /&gt;Trail 1: t__t___&lt;br /&gt;Key in one character or your guess word: g&lt;br /&gt;Trail 2: t__t__g&lt;br /&gt;Key in one character or your guess word: e&lt;br /&gt;Trail 3: te_t__g&lt;br /&gt;Key in one character or your guess word: testing&lt;br /&gt;Trail 4: Congratulation!&lt;br /&gt;You got in 4 trials&lt;br /&gt;&lt;br /&gt;Hints:&lt;br /&gt;&lt;br /&gt;    * Set up a boolean array to indicate the positions of the word that have been guessed correctly.&lt;br /&gt;    * Check the length of the input String to determine whether the player enters a single character or a guessed word. If the player enters a single character, check it against the word to be guessed, and update the boolean array that keeping the result so far.&lt;br /&gt;    * Try retrieving the word to be guessed from a text file (or a dictionary) randomly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Day of the Week): Write a program called DayOfWeek, which takes a date (in year, month and day), and returns the day of the week.&lt;br /&gt;&lt;br /&gt;There is an interesting algorithm for finding the day of week given year, month and day (e.g., 26-9-2010), as follows:&lt;br /&gt;&lt;br /&gt;   1. Take the last two digit of the year, and add a quarter (divide by 4 and discard the remainder). In our example, 10 + 10/4 = 12&lt;br /&gt;   2. Add a value according to the month as follow: Jan: 1, Feb: 4, Mar: 4, Apr: 0, May: 2, Jun: 5, Jul: 0, Aug: 3, Sep: 6, Oct: 1, Nov: 4, Dec: 6. For our example, 12 + 6 (Sep) = 18.&lt;br /&gt;   3. Add the day. For our example, 18 + 26 = 44&lt;br /&gt;   4. Add a century offset according to century value as follows: 18xx:2, 19xx: 0, 20xx: 6, 21xx: 4. For our example, 44 + 6 (20xx) = 50. For years outside this range, add or subtract 400 to bring the year into this range. This is based on the fact that the calendar repeats every 400 years.&lt;br /&gt;   5. For leap year (a leap year is a year that is divisible by 4 and not divisible by 100, or divisible by 400), if month is Jan or Feb, subtract 1. For our example, 2010 is not a leap year.&lt;br /&gt;   6. Take modulus 7, and retrieve the day of the week from the array {Sat, Sun, Mon, Tues, Wed, Thurs, Fir}. For our example, 50 % 7 = 1, which is a Sunday.&lt;br /&gt;&lt;br /&gt;You can compare the day obtain with the Java's Calendar output as follows:&lt;br /&gt;&lt;br /&gt;// Construct a Calendar with the given year, month and day&lt;br /&gt;Calendar cal = new GregorianCalendar(year, month - 1, day);  // month is 0-based&lt;br /&gt;// Get the day of the week number: 1 (Sunday) to 7 (Saturday)&lt;br /&gt;int dayNumber = cal.get(Calendar.DAY_OF_WEEK);&lt;br /&gt;String[] calendarDays = { "Sunday", "Monday", "Tuesday", "Wednesday",&lt;br /&gt;                          "Thursday", "Friday", "Saturday" };&lt;br /&gt;// Print result&lt;br /&gt;System.out.println("It is " + calendarDays[dayNumber - 1]);&lt;br /&gt;&lt;br /&gt;This above algorithm work for Gregorian dates only. The calendar we used today is known as Gregorian calendar, which came into effect in October 15, 1582 in some countries and later in other countries. It replaces the Julian calendar. 10 days were removed from the calendar, i.e., October 4, 1582 (Julian) was followed by October 15, 1582 (Gregorian). The only difference between the Gregorian and the Julian calendar is the "leap-year rule". In Julian calendar, every four years is a leap year. In Gregorian calendar, a leap year is a year that is divisible by 4 but not divisible by 100, or it is divisible by 400, i.e., the Gregorian calendar omits century years which are not divisible by 400. Furthermore, Julian calendar considers the first day of the year as march 25th, instead of January 1st.&lt;br /&gt;&lt;br /&gt;It is difficult to modify the above algorithm to handle pre-Gregorian dates. A better algorithm is to find the number of days from a known date.&lt;br /&gt;Exercises on Number Theory&lt;br /&gt;&lt;br /&gt;Exercise (Perfect and Deficient Numbers): A positive integer is called a perfect number if the sum of all its factors (excluding the number itself, i.e., proper divisor) is equal to its value. For example, the number 6 is perfect because its proper divisors are 1, 2, and 3, and 6=1+2+3; but the number 10 is not perfect because its proper divisors are 1, 2, and 5, and 10≠1+2+5.&lt;br /&gt;&lt;br /&gt;A positive integer is called a deficient number if the sum of all its proper divisors is less than its value. For example, 10 is a deficient number because 1+2+5&lt;10; while 12 is not because 1+2+3+4+6&gt;12.&lt;br /&gt;&lt;br /&gt;Write a Java method called isPerfect(int posInt) that takes a positive integer, and return true if the number is perfect. Similarly, write a Java method called isDeficient(int posInt) to check for deficient numbers.&lt;br /&gt;&lt;br /&gt;Using the methods, write a program called PerfectNumberList that prompts user for an upper bound (a positive integer), and lists all the perfect numbers less than or equal to this upper bound. It shall also list all the numbers that are neither deficient nor perfect. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the upper bound: 1000&lt;br /&gt;These numbers are perfect:&lt;br /&gt;6 28 496&lt;br /&gt;[3 perfect numbers found (0.30%)]&lt;br /&gt;    &lt;br /&gt;These numbers are neither deficient nor perfect:&lt;br /&gt;12 18 20 24 30 36 40 42 48 54 56 60 66 70 72 78 80 ......&lt;br /&gt;[246 numbers found (24.60%)]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (Prime): A positive integer is a prime if it is divisible by 1 and itself only. Write a Java method called isPrime(int posInt) that takes a positive integer and returns true if the number is a prime. Write a Java program called PrimeList that prompts the user for an upper bound (a positive integer), and lists all the primes less than or equal to it. Also display the percentage of prime (up to 2 decimal places). The output shall look like:&lt;br /&gt;&lt;br /&gt;Please enter the upper bound: 10000&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;......&lt;br /&gt;......&lt;br /&gt;9967&lt;br /&gt;9973&lt;br /&gt;[1230 primes found (12.30%)]&lt;br /&gt;&lt;br /&gt;Hints: To check if a number n is a prime, the simplest way is try dividing n by 2 to √n.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise: Write a method isProductOfPrimeFactors(int posInt) that takes a positive integer, and return true if the product of all its prime factors (excluding 1 and the number itself) is equal to its value. For example, the method returns true for 30 (30=2×3×5) and false for 20 (20≠2×5). You may need to use the isPrime() method in the previous exercise.&lt;br /&gt;&lt;br /&gt;Write a program called PerfectPrimeFactorList that prompts user for an upper bound. The program shall display all the numbers (less than or equal to the upper bound) that meets the above criteria. The output shall look like:&lt;br /&gt;&lt;br /&gt;Enter the upper bound: 100&lt;br /&gt;These numbers are equal to the product of prime factors: &lt;br /&gt;1 6 10 14 15 21 22 26 30 33 34 35 38 39 42 46 51 55 57 58 62 65 66 69 70 74 77 78 82 85 86 87 91 93 94 95 &lt;br /&gt;[36 numbers found (36.00%)]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exercise (GCD): One of the earlier known algorithms is the Euclid algorithm to find the GCD of two integers (developed by the Greek Mathematician Euclid around 300BC). By definition, GCD(a, b) is the greatest factor that divides both a and b. Assume that a and b are positive integers, and a≥b, the Euclid algorithm is based on these two properties:&lt;br /&gt;&lt;br /&gt;GCD(a, 0) = a&lt;br /&gt;GCD(a, b) = GCD(b, a mod b), where (a mod b) denotes the remainder of a divides by b.&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;&lt;br /&gt;GCD(15, 5) = GCD(5, 0) = 5&lt;br /&gt;GCD(99,88) = GCD(88,11) = GCD(11,0) = 11&lt;br /&gt;GCD(3456,1233) = GCD(1233,990) = GCD(990,243) = GCD(243,18) = GCD(18,9) = GCD(9,0) = 9&lt;br /&gt;&lt;br /&gt;The pseudocode for the Euclid algorithm is as follows:&lt;br /&gt;&lt;br /&gt;GCD(a, b)    // assume that a ≥ b&lt;br /&gt;while (b != 0) {&lt;br /&gt;   // Change the value of a and b: a ← b, b ← a mod b, and repeat until b is 0&lt;br /&gt;   temp ← b&lt;br /&gt;   b ← a mod b&lt;br /&gt;   a ← temp&lt;br /&gt;}&lt;br /&gt;// after the loop completes, i.e., b is 0, we have GCD(a, 0)&lt;br /&gt;GCD is a&lt;br /&gt;&lt;br /&gt;Write a method called gcd() with the following signature:&lt;br /&gt;&lt;br /&gt;public static int gcd(int a, int b)&lt;br /&gt;&lt;br /&gt;Your methods shall handle arbitrary values of a and b, and check for validity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-5150233777198889792?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/5150233777198889792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2011/07/learn-java-programming_07.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/5150233777198889792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/5150233777198889792'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2011/07/learn-java-programming_07.html' title='LEARN JAVA PROGRAMMING'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-5063756137229708957</id><published>2009-05-10T20:38:00.001+01:00</published><updated>2009-05-11T15:50:40.193+01:00</updated><title type='text'>The ZAIN Free Internet Browsing Manual.</title><content type='html'>&lt;div style="text-align: justify;"&gt;The ZAIN Free Internet Browsing Manual.&lt;br /&gt;&lt;br /&gt;Copyright Notice&lt;br /&gt;Choose the copyright you want and put it here. State if you are giving it away to other people to sell it or you are not.&lt;br /&gt;&lt;br /&gt;Introduction&lt;br /&gt;&lt;br /&gt;Thanks for purchasing this report. This report will help you to connect to the internet using the zain network as a medium for free.&lt;br /&gt;However, because this stuff is free, it might stop working any time and then there might be other settings that would work but for now, you can use it till it stops working.&lt;br /&gt;However, you must now that the connection will be terminating every 60 minutes and you can re-connect back. You are also going to be using the IP from France.&lt;br /&gt;I have detailed how to go about it step by step in this guide but note that you will have to download 3 software to make it work.&lt;br /&gt;Because of this, you will need to look for a cybercafé with high speed.&lt;br /&gt;The first software is about 11MB and the second one is about 36MB and the third is around 5MB. Without them, there is nothing you can do with this manual.&lt;br /&gt;So, let’s start with the requirements.&lt;br /&gt;&lt;br /&gt;Requirements&lt;br /&gt;&lt;br /&gt;In order to use this free connection, you will need to get a GPRS enabled phone, a new Zain SIM card and a USB cable to connect your phone to the computer.&lt;br /&gt;&lt;br /&gt;The Phone&lt;br /&gt;The phone should preferably be nokia because that is what I will use in explaining in this report. The Nokia types that would work are Nokia 3110c or Nokia 6230 (price range is between N12,500 – N16,000). Any of the N series will also work fine with it.&lt;br /&gt;&lt;br /&gt;SIM card.&lt;br /&gt;Due to the constant upgrading of sim cards, you will need to get the latest ZAIN sim card to use for this connection. I believe it is around N300 as at the time of compiling this report.&lt;br /&gt;&lt;br /&gt;USB Cable&lt;br /&gt;This one too is very important unless your phone and computer has blue tooth that they can use to connect.&lt;br /&gt;If the phone you want to use does not come with a USB cable, simply take it to the market to get a good USB cable that would work fine with it. The USB cables are definitely not worth more than N500.&lt;br /&gt;&lt;br /&gt;Installation starts here&lt;br /&gt;The first thing you have to do is to go to www.your-freedom.net to open an account. Opening an account is free and I have some pictures here to show you how to go about it.&lt;br /&gt;The page at your-freedom.net looks like the one below. On the upper right, you will see a link that says “First visit? Click here to register”&lt;br /&gt;&lt;br /&gt;After clicking on the link that says Click here to register, a page will come up which you have to fill so that you can open a free account with them. See it below:&lt;br /&gt;&lt;br /&gt;Once you click on submit, a page will come up that you should check your email to confirm your registration.&lt;br /&gt;&lt;br /&gt;So, just go straight to your email and you will see an email from them like the one below.&lt;br /&gt;&lt;br /&gt;When you open it, you will see a link that you have to click on. Click on it and a page will open showing that you can now log into your account.&lt;br /&gt;&lt;br /&gt;You will now have to download the software that Your-freedom.net gives so that you can use it for the connection.&lt;br /&gt;&lt;br /&gt;To get the download link, login to your account with the username and password that you used in registering and then click on the link on the upper side that says “downloads” like in the picture below:&lt;br /&gt;&lt;br /&gt;Once you click on the link, a page will come up and you will see a table in it like the one below, just go to the second role and look for the link under “Download servers” that is titled Mirror (FR). Right click on it and download it.&lt;br /&gt;&lt;br /&gt;The server is like 11MB and it will take some time to download.&lt;br /&gt;&lt;br /&gt;When you have downloaded it, install it on your computer by right clicking on it, select open and then click on NEXT 6 times and the program will install.&lt;br /&gt;&lt;br /&gt;You will now have to open the your-freedom software that you have installed on your system by double clicking on the icon on your desktop. The picture above shows how the icon will look like.&lt;br /&gt;&lt;br /&gt;Once you open it, you will see the picture below:&lt;br /&gt;&lt;br /&gt;Firstly, click on configure, the one I circled in the diagram above. When you do so, another table will come up. Under the TAB that says Internet connection, fill in the following details like the one below:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Initial server - ems11.your-freedom.de Don’t add https like I did in the picture below.&lt;br /&gt;&lt;br /&gt;Port – 443&lt;br /&gt;&lt;br /&gt;Protocol – Choose https&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Tick the ones I ticked like in the picture below:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Minimum buffer size: 1500&lt;br /&gt;&lt;br /&gt;Initial post size: 10000000&lt;br /&gt;&lt;br /&gt;Minimum post size : 20000&lt;br /&gt;&lt;br /&gt;FTP mode – Choose both&lt;br /&gt;&lt;br /&gt;After that, click on proxy settings like in the picture below and enter the following details:&lt;br /&gt;&lt;br /&gt;Proxy address: 172.18.254.5&lt;br /&gt;&lt;br /&gt;Proxy port : 8080&lt;br /&gt;&lt;br /&gt;Proxy type: Choose HTTP/HTTPS&lt;br /&gt;&lt;br /&gt;Proxy authentication: Choose ANY or NONE&lt;br /&gt;&lt;br /&gt;After that, click on account information and put your username and password there like in the picture below, then click on SAVE and EXIT:&lt;br /&gt;&lt;br /&gt;When you do that, it will return you back to the table you were before where you clicked on configure.&lt;br /&gt;&lt;br /&gt;On getting there, click on the ports tab like in the picture below and enter the following info:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check Socks 4/5 and Web proxy.&lt;br /&gt;&lt;br /&gt;Under the first port, enter 1080 and in the second port, enter 8080.&lt;br /&gt;&lt;br /&gt;Next, click on Messages and change Minimum level to INFO.&lt;br /&gt;&lt;br /&gt;When you have done all, click on the STATUS tab and then click on the button that says “Start connection” like the one below:&lt;br /&gt;&lt;br /&gt;NOTE – It won’t connect now because there is no internet connection on your computer yet.&lt;br /&gt;&lt;br /&gt;How to Connect Your Phone To The Internet&lt;br /&gt;&lt;br /&gt;The next thing you have to do is to connect your phone to the internet.&lt;br /&gt;&lt;br /&gt;Firstly, get your SIM card configured by calling the ZAIN customer service at 113. That should be after you have gotten your Nokia phone anyway.&lt;br /&gt;&lt;br /&gt;The next thing you should do is to download the Nokia PC suite for your phone from the Nokia site at www.nokia.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The PC suite is like 30+ MB and it will take some time to download.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once you have downloaded it, install it on the system you want to use for the connection (the one you have already installed your-freedom on)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The installation is easy. Just right click it and open it. Click on all the next you see and it will install.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once the installation is complete, use the USB cable you bought for your phone to connect your phone to your computer (either laptop or desktop)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The phone will ask you to choose a mode, choose nokia mode and click Ok. By the time you look at the taskbar of your computer, you will see the computer connecting with your phone. That is done, you will see Nokia 3110c connected via USB (If you are using Noia 3110c)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With that done, now go and open the Nokia PC suite that you installed.&lt;br /&gt;&lt;br /&gt;When it opens, it will look like the one in the picture below:&lt;br /&gt;&lt;br /&gt;Now, click on the “connect to the internet icon” (It is the one I circled in red in the picture above)&lt;br /&gt;&lt;br /&gt;You will see another box open where the phone will try to make a connection. As at this time, it can’t get connected because of the settings.&lt;br /&gt;&lt;br /&gt;Click on the settings Icon (In form of a spanner) and you will see this next diagram come up where you will choose your type of phone (which is Nokia 3110C in this case)&lt;br /&gt;&lt;br /&gt;After selecting the modem, click on next which is the arrow circled in red above and the next page will come up where you will be asked to select your network provider.&lt;br /&gt;&lt;br /&gt;Choose the configure the connection manually option and click on next like in the picture below:&lt;br /&gt;&lt;br /&gt;On the next page like below, you will now enter these settings:&lt;br /&gt;&lt;br /&gt;Access point: wap.ng.zain.com&lt;br /&gt;&lt;br /&gt;Username : wap&lt;br /&gt;&lt;br /&gt;Password : wap&lt;br /&gt;&lt;br /&gt;You can now click on finish and click on the connect button.&lt;br /&gt;&lt;br /&gt;If you have configured your SIM card, you will see that the PC suite will show you connected.&lt;br /&gt;&lt;br /&gt;How To Configure Mozilla Browser&lt;br /&gt;&lt;br /&gt;You can now start browsing right now but we will have to configure the browser (Mozilla) mozilla is the best browser you can use for this connection but it won’t browse until you make the necessary configurations.&lt;br /&gt;&lt;br /&gt;Download the Mozilla browser on your computer from their website at www.mozilla.com and install it. You can also get it from the people who sell software in case you do not want to download it.&lt;br /&gt;&lt;br /&gt;Once you have installed it, you should now open it.&lt;br /&gt;&lt;br /&gt;Go to tools and select options on the drop down menu the way you see it in the picture below:&lt;br /&gt;&lt;br /&gt;After clicking on options, a box will come up. On that dialogue box, select the advanced tab like in the picture below and click on network:&lt;br /&gt;&lt;br /&gt;After clicking on network, you will see the page below. You will now click settings in front of  “Configure how firefox connects to the internet”&lt;br /&gt;&lt;br /&gt;After clicking on settings, you will see another box come up. On that next box, do the following:&lt;br /&gt;&lt;br /&gt;1. Choose the option that says “manual Proxy Configuration.&lt;br /&gt; 2. Now enter the following in the areas listed like in the picture below;&lt;br /&gt;&lt;br /&gt;HTTP Proxy – 127.0.0.1     PORT - 8080&lt;br /&gt;&lt;br /&gt;SSL Proxy – 127.0.0.1         PORT - 8080&lt;br /&gt;&lt;br /&gt;FTP Proxy - 127.0.0.1          PORT - 8080&lt;br /&gt;&lt;br /&gt;SOCKS Host - 127.0.0.1      PORT – 1080&lt;br /&gt;&lt;br /&gt;After that, click on OK and that is all for Mozilla.&lt;br /&gt;&lt;br /&gt;You can now start browsing with your free zain connection.&lt;br /&gt;&lt;br /&gt;To do so, open your-freedom on your computer and select the start connection tab once your phone and the computer is connected.&lt;br /&gt;&lt;br /&gt;Then, launch your Mozilla browser and continue your work.&lt;br /&gt;&lt;br /&gt;How to Use Messengers&lt;br /&gt;&lt;br /&gt;In case you want to use messengers like Yahoo, MSN or Google messengers, you will have to configure them. To do , simply go and get the required settings at the your-freedom website.&lt;br /&gt;&lt;br /&gt;The page you will go is below Click on DOCS and FAQS at the top and click on Instant messaging by the left hand side and you will see the different configuration illustrations for the different messengers.&lt;br /&gt;&lt;br /&gt;This is where I rest my case.&lt;br /&gt;&lt;br /&gt;Like is said, the free browsing stuff might stop anytime. When it stops, don’t worry, just look out for the next one or better still, pay good money for something better.&lt;br /&gt;&lt;br /&gt;Thanks for reading.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-5063756137229708957?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/5063756137229708957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/05/zain-free-internet-browsing-manual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/5063756137229708957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/5063756137229708957'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/05/zain-free-internet-browsing-manual.html' title='The ZAIN Free Internet Browsing Manual.'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-2370544438436143608</id><published>2009-05-10T20:21:00.002+01:00</published><updated>2009-05-10T20:37:03.992+01:00</updated><title type='text'>MTN AND ZAIN FREE INTERNET BROWSING SOFTWARE AND SETTINGS HERE</title><content type='html'>&lt;div class="navbar section" id="navbar"&gt;&lt;div class="widget Navbar" id="Navbar1"&gt;&lt;script type="text/javascript"&gt;     function setAttributeOnload(object, attribute, val) {       if(window.addEventListener) {         window.addEventListener("load",           function(){ object[attribute] = val; }, false);       } else {         window.attachEvent('onload', function(){ object[attribute] = val; });       }     }   &lt;/script&gt; &lt;iframe src="navbar.g?targetBlogID=5154519457620239712&amp;amp;blogName=ZAIN+AND+MTN+FREE+BROWSING+ON+COMPUTE...&amp;amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;amp;navbarType=BLUE&amp;amp;layoutType=LAYOUTS&amp;amp;homepageUrl=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F&amp;amp;blogLocale=en&amp;amp;searchRoot=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2Fsearch" marginwidth="0" marginheight="0" id="navbar-iframe" title="Blogger Navigation and Search" frameborder="0" height="30" scrolling="no" width="100%"&gt;&lt;/iframe&gt; &lt;/div&gt;&lt;/div&gt; &lt;div id="outer-wrapper"&gt;&lt;div id="wrap2"&gt; &lt;!-- skip links for text browsers --&gt; &lt;font id="skiplinks" style="display: none;"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/#main"&gt;skip to main &lt;/a&gt; |       &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/#sidebar"&gt;skip to sidebar&lt;/a&gt; &lt;/font&gt; &lt;div id="header-wrapper"&gt; &lt;div class="header section" id="header"&gt;&lt;div class="widget Header" id="Header1"&gt; &lt;div id="header-inner"&gt; &lt;div class="titlewrapper"&gt; &lt;h1 class="title"&gt; ZAIN AND MTN FREE BROWSING ON COMPUTER AND MOBILE PHONE (cheat codes always avalaible) &lt;/h1&gt; &lt;/div&gt; &lt;div class="descriptionwrapper"&gt; &lt;p class="description"&gt;&lt;font&gt;always visit this site for the latest free browsing software and codes&lt;/font&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="content-wrapper"&gt; &lt;div id="crosscol-wrapper" style="text-align: center;"&gt;  &lt;/div&gt; &lt;div id="main-wrapper"&gt; &lt;div class="main section" id="main"&gt;&lt;div class="widget Blog" id="Blog1"&gt; &lt;div class="blog-posts hfeed"&gt; &lt;!-- google_ad_section_start --&gt; &lt;h2 class="date-header"&gt;Saturday, May 9, 2009&lt;/h2&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="114118183376683336"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/free-code.html"&gt;free code&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; &lt;!--  Start Bravenet.Com Service Code --&gt;&lt;br /&gt;&lt;div style="padding: 10px; line-height: 13px; color: white;"&gt;&lt;br /&gt;&lt;a href="http://pub35.bravenet.com/chat/show.php?usernum=2959966414&amp;amp;cpv=2" style="float: left; margin-right: 10px; color: white;"&gt;&lt;img src="http://assets.bravenet.com/common/images/cpcode/medium-white-chat.gif" alt="Free Live Chat Rooms" border="0" height="32" width="32"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://pub35.bravenet.com/chat/show.php?usernum=2959966414&amp;amp;cpv=2" style="font-size: 12px; font-weight: bold; color: white;"&gt;Enter my Chat Room&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bravenet.com/webtools/chat/" style="font-size: 10px; color: white;"&gt;Free Chat Rooms by Bravenet.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!-- End Bravenet.Com Service Code --&gt;  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/free-code.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-05-09T06:08:00+01:00"&gt;6:08 AM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=114118183376683336" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=114118183376683336" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=114118183376683336" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- google_ad_section_end --&gt; &lt;script type="text/javascript"&gt;&lt;!-- google_ad_client="pub-1513076135017878"; google_ad_host="pub-1556223355139109"; google_ad_width=300; google_ad_height=250; google_ad_format="300x250_as"; google_ad_type="text_image"; google_color_border="FFFFFF"; google_color_bg="FFFFFF"; google_color_link="632035"; google_color_url="C88FA2"; google_color_text="BA476B"; //--&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; &lt;/script&gt;&lt;script src="http://pagead2.googlesyndication.com/pagead/expansion_embed.js"&gt;&lt;/script&gt;&lt;script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"&gt;&lt;/script&gt;&lt;script&gt;window.google_render_ad();&lt;/script&gt;&lt;ins style="border: medium none ; margin: 0pt; padding: 0pt; height: 250px; position: relative; visibility: visible; width: 300px;"&gt;&lt;ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 250px; position: relative; visibility: visible; width: 300px;"&gt;&lt;iframe allowtransparency="true" hspace="0" id="google_ads_frame1" marginheight="0" marginwidth="0" name="google_ads_frame" src="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-1513076135017878&amp;amp;host=pub-1556223355139109&amp;amp;dt=1242011956436&amp;amp;lmt=1241936786&amp;amp;format=300x250_as&amp;amp;output=html&amp;amp;correlator=1242011956436&amp;amp;url=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F&amp;amp;color_bg=FFFFFF&amp;amp;color_text=BA476B&amp;amp;color_link=632035&amp;amp;color_url=C88FA2&amp;amp;color_border=FFFFFF&amp;amp;ad_type=text_image&amp;amp;ref=http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dnew%2Bzain%2Bfree%2Bbrowsing%2Bsoftware%2Bother%2Bthan%2Byour-freedom%26hl%3Den%26client%3Dfirefox-a%26channel%3Ds%26rls%3Dorg.mozilla%3Aen-US%3Aofficial%26hs%3Dxvt%26start%3D10%26sa%3DN&amp;amp;frm=0&amp;amp;ga_vid=474794850.1242011957&amp;amp;ga_sid=1242011957&amp;amp;ga_hid=1881140221&amp;amp;flash=0&amp;amp;w=300&amp;amp;h=250&amp;amp;u_h=768&amp;amp;u_w=1024&amp;amp;u_ah=738&amp;amp;u_aw=1024&amp;amp;u_cd=32&amp;amp;u_tz=-420&amp;amp;u_his=1&amp;amp;u_java=true&amp;amp;u_nplug=8&amp;amp;u_nmime=51&amp;amp;dtd=131&amp;amp;w=300&amp;amp;h=250&amp;amp;xpc=61oWqiBJtP&amp;amp;p=http%3A//cashmoneyjr-ebooks.blogspot.com" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" frameborder="0" height="250" scrolling="no" width="300"&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;!-- google_ad_section_start --&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="2818613480071625377"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/mtn-and-zain-free-internet-browsing.html"&gt;MTN AND ZAIN FREE INTERNET BROWSING SOFTWARE AND SETTINGS HERE&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; Hi my dear friend, it has been discovered that you can really watch the DSTV channels free of charge on your computer. Oh men! That’s amazing; don’t you think so? The let us proceed on how to achieve this.&lt;br /&gt;&lt;br /&gt;How it works:&lt;br /&gt;&lt;br /&gt;It is all about a whole new special software that has been programmed for this purpose.&lt;br /&gt;Before I continue, I would like you to note that this is not online tv as you might have known that some websites offer free watching of some television channels from their site. But most at times, what those channels broadcast are not matters of interest especially to those in this part of the world.&lt;br /&gt;&lt;br /&gt;However, the free DSTV software is a software that when installed in your computer and correctly configured with settings, you will be able to watch the DSTV stations live in your computer free of charge. Channels like ESPN, super sports 1-10, African magic, ITV, AIT, eTV, MTV base, cartoon network, setanta, NTA, CNN and many many other marvelous channels the DSTV offer. (Of course, you know the DSTV channels. So there is no need enumerating the numerous channels here).&lt;br /&gt;There will be no need for a DSTV disc or a decoder. No tv card will be required to be inserted into your computer and no payment for subscription.&lt;br /&gt;Someone might be tempted to ask me how the software will gain network access if it doesn’t a disc, decoder or even any sort of antenna. It would be a very good question but here comes the answer: you will be required to connect a gprs enabled mobile phone to your computer through Bluetooth connectivity or a usb cable. ( don’t worry about the connection, it won’t be a problem at all, just read on.&lt;br /&gt;One of the most awesome features of this software is that it can allow you to save any program being broadcast live in your computer for you to watch later. For example, a football match you don’t want to miss is going on live and you are expected to be attending to one kind of business or the other; no cause for alarm! What you will do is just to save the broadcast and watch it any time later at your own convenience. Is that not wonderful? Is up to you.&lt;br /&gt;&lt;br /&gt;What are required to get started:&lt;br /&gt;&lt;br /&gt; A GPRS enabled mobile phone&lt;br /&gt;&lt;br /&gt; The phone must possess either usb cable connectivity or Bluetooth&lt;br /&gt;&lt;br /&gt; A computer set&lt;br /&gt;&lt;br /&gt; The DSTV software.&lt;br /&gt;&lt;br /&gt;How to make it happen:&lt;br /&gt;&lt;br /&gt;Step 1:&lt;br /&gt;Get a gprs enabled mobile phone that has either a usb cable connectivity or Bluetooth connectivity.&lt;br /&gt;&lt;br /&gt;Step 2:&lt;br /&gt;Connect the phone with your computer with the aid of either the usb cable or Bluetooth through a pc suit or ordinary dial up connection but pc suite connection is preferable. (I will provide an e-manual for the connection)&lt;br /&gt;&lt;br /&gt;Step 3:&lt;br /&gt;Install the DSTV software in your computer. Open it and configure it with the settings. (I will send you the software and the settings)&lt;br /&gt;&lt;br /&gt;When you have successfully completed the above simple steps, you will now begin to watch the any of the DSTV channels you want 24/7.&lt;br /&gt;&lt;br /&gt;THE COST FOR THIS SERVICE IS N3,000 for the first 20 people to place their order but will increase to N7,000 after that.&lt;br /&gt;Rush now and place your order while offer lasts.&lt;br /&gt;&lt;br /&gt;So if you are interested in getting the software, its settings and the e-manual that comes with it for guidance plus some bonuses,&lt;br /&gt;&lt;br /&gt;Pay the required amount into the following account:&lt;br /&gt;&lt;br /&gt;Account number: ------- 094601010003759&lt;br /&gt;Account name: ---------- Ngwu Ogonnaya Precious&lt;br /&gt;Bank: ---------------------- Fidelity bank Nig plc&lt;br /&gt;&lt;br /&gt;When you pay, text your teller number, your name, amount you paid, the service you paid for and your email address to this number: 08060374821.&lt;br /&gt;After confirmation with the bank alert, I will send you the package through your email as attachment. You will now download the attached files from the mail, and begin to enjoy your self.&lt;br /&gt;&lt;br /&gt;You can contact me on 08060374821 or email cashmoney4realg@yahoo.com for any clarifications or further talks.&lt;br /&gt;&lt;br /&gt;Hey my friend just login to this website and sign up and you will be opportune to get free e-books that will empower your success online and you can resell them to make your own money, you can also share ideas and topics, advertise your products and packages, watch movies and even upload your own: the great website is http://www.preciousmoneyclub.webs.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Wanna get your computer connected to the internet and browse the web uninterruptedly free of charge without stress, just log in to&lt;br /&gt;http://precious-freeinternet.blogspot.com or http://precious5.blogspot.com&lt;br /&gt;&lt;br /&gt;Wanna get e-books that features extensively on various online buzz that must ensure your online business success; some of the features are:&lt;br /&gt;1. how to browse the internet free of charge.&lt;br /&gt;2. how to configure your computer and watch dstv live for free on your computer with no disc, decorder or tv card and no subscription fee required.&lt;br /&gt;3. how to create and host your own website free of charge.&lt;br /&gt;4. how to sell your products online.&lt;br /&gt;5. how to shop online with your credit card.(virtual credit card for free)&lt;br /&gt;6. how to create your own blog and advertise your products online; this e-book will show you the step by step of creating a money making blog, from creating your blog to online video tutorial tools, google adsense embedding, free adsense code converter, creating a very big explosive traffic to your blog, monetizing your blog infact it is highly loaded for your consumption.&lt;br /&gt;7. how to know where, when to buy and sell your stocks and make more than double the money you spent.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8. how to make cool money on printing recharge cards and vouchers.&lt;br /&gt;9. how to signup for a gmail account for free and make money with it.&lt;br /&gt;10. how to register your website in google and get your site advertised.&lt;br /&gt;11. software that picks your internet connection and modifies it’s speed 10 times.&lt;br /&gt;12. how to make free calls from your mobile phone to any number in the world.&lt;br /&gt;13. a 5-in-1 package on how to legally open and operate paypal account, how to open a click bank account in nigeria, how to open a us bank account, how to generate credit cards and resell them to nigerians and how to receive your affiliates/earnings here in nigeria.&lt;br /&gt;14. how to get a free us telephone number and receive your calls anywhere you are in the world free of charge.&lt;br /&gt;15. how to escape scams on the internet&lt;br /&gt;16. how to avoid temptations on the internet&lt;br /&gt;17. how to get informed on free biz infos&lt;br /&gt;For more info on this, gO TO HTTP://WWW.PRECIOUSMONEYCLUB.WEBS.COM/APPS/FORUMS&lt;br /&gt;Goodluck!!!&lt;br /&gt;&lt;br /&gt;To your online success&lt;br /&gt;precious cashmoney&lt;br /&gt;+2348060374821&lt;br /&gt;cashmoney4realg@yahoo.com&lt;br /&gt;cashmoney4realg@gmail.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;make fast money just login to http://preciousmoneyclub.webs.com and signup to start receiving free e-books that will empower your success online and you can resell them to make money online  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/mtn-and-zain-free-internet-browsing.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-05-09T05:15:00+01:00"&gt;5:15 AM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=2818613480071625377" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=2818613480071625377" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=2818613480071625377" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;h2 class="date-header"&gt;Tuesday, May 5, 2009&lt;/h2&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="912754606057856403"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/mtn-and-zain-cheat-codes-for-mobile.html"&gt;MTN AND ZAIN CHEAT CODES FOR MOBILE PHONE&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt;Here, i won't talk too much or waste anybodies time rather i will go straight to the point and say the little words that i have for you so read care fully and understand me because i won't go to explain it for those who are just beginning so after seeing the free browsing codes and you don't know what to do, go to the forum and post your problem and i assure you that it will be taken care of within 24 hours.&lt;br /&gt;&lt;br /&gt;MTN FREE BROWSING ON MOBILE PHONE:&lt;br /&gt;&lt;br /&gt;They are two available codes that i have now,&lt;br /&gt;&lt;br /&gt;1) use the normal setting earlier. Homepage:&lt;br /&gt;wap.mtnonline.com.t9space.com/power/m/http/google.com&lt;br /&gt;&lt;br /&gt;2) this code has a France server. Homepage: wap.mtnonline.com/lnk000/=www.google.com&lt;br /&gt;                                                           Proxy address or IP: 081.93.186.116&lt;br /&gt;                                                           Port: 80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MTN FREE BROWSING WITH SOLIBAY AND OPERAMINI MOD:&lt;br /&gt;&lt;br /&gt;I also have two available codes for this now,&lt;br /&gt;&lt;br /&gt;1) use this as server address: wap.mtnonline.com/lnk000/=80.232.117.10:80&lt;br /&gt;&lt;br /&gt;2) use this server address: 10.199.212.8%2fast%3c0@80.232.117.10:80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZAIN FREE BROWSING ON MOBILE PHONE:&lt;br /&gt;&lt;br /&gt;They are two available codes:&lt;br /&gt;&lt;br /&gt;1) wap.ng.zain.com/globalen/px/url/303/google.com&lt;br /&gt;&lt;br /&gt;2) wap.ng.zain.com/globalen/url=www.google.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZAIN FREE BROWSING ON SOLIBAY AND OPERAMINI MOD&lt;br /&gt;&lt;br /&gt;I have only on one available code:&lt;br /&gt;&lt;br /&gt;1) wap.ng.zain.com/globalen/px/url/303/80.232.117.10:80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ETISALAT FREE BROWSING ON MOBILE PHONE:&lt;br /&gt;&lt;br /&gt;I have three available codes:&lt;br /&gt;&lt;br /&gt;1) etisalat.ng.gprs@www.google.com&lt;br /&gt;&lt;br /&gt;2) etisalat.wap.gprs/000/google.com&lt;br /&gt;&lt;br /&gt;3) 10.71.170.5@www.google.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FREE SMS ON MOBILE PHONE&lt;br /&gt;&lt;br /&gt;1) login to http://www.mjoy.com and register for free unlimited text messages&lt;br /&gt;2) visit http://www.bbnsms.com for five free sms a day&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MTN FREE BROWSING ON COMPUTER USING YOUR-FREEDOM&lt;br /&gt;&lt;br /&gt;I have four available codes but i will only disclose three codes:&lt;br /&gt;&lt;br /&gt;1) wap.mtnonline.com%2f.m@ems03.your-freedom.de&lt;br /&gt;&lt;br /&gt;2) loaded.mtnonline.com@ems11.your-freedom.de&lt;br /&gt;&lt;br /&gt;3) 10.199.212.8%2f.80e@ems09.your-freedom.de&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZAIN FREE BROWSING ON COMPUTER USING YOUR-FREEDOM&lt;br /&gt;&lt;br /&gt;I have three available codes but i will only disclose two codes:&lt;br /&gt;&lt;br /&gt;1) wap.ng.zain.com/globalen/px/url/303@ems19.your-freedom.de&lt;br /&gt;&lt;br /&gt;2) ems10.your-freedom.de&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ETISALAT FREE BROWSING ON COMPUTER USING YOUR-FREEDOM&lt;br /&gt;&lt;br /&gt;I have three available codes but i will only disclose two codes:&lt;br /&gt;&lt;br /&gt;1) emso6.your-freedom.de&lt;br /&gt;&lt;br /&gt;2) 10.71.170.5@ems07.your-freedom.de&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FREE DSTV ON COMPUTER&lt;br /&gt;&lt;br /&gt;join http://www.preciousmoneyclub.webs.com and get the settings and software free!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FREE CALLS:&lt;br /&gt;login to jaxtr.com then and register and invite those that you want to be calling for free to register after they have registered, then you can login and call the absolutely free!!!&lt;br /&gt;&lt;br /&gt;FREE INTERNATIONAL CALLS:&lt;br /&gt;&lt;br /&gt;login to www.jaxtr.com, then put in you number in international format and select your country then put n your friend number in international format and select his or her country then click on get jaxtr number and the number will dial on her phone (it's a uk number) once she picks it, you are connected for your free international calls.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, i guess i have done justice to the free browsing codes that you have been worrying me for, anyway they is still something, i guess that if you are not just looking for codes maybe you don't have the settings and you want it, if you copy these codes, it will mean absolutely nothing to you and i said it earlier that these codes are not for people who have not been in the game that it is for those who are already in the game and i will not come and start explaining to make those who are not in the game understand so if you don't know how to apply them or after applying them , it does not work for you.....hahahahahaha, then you owe me the price i want, just click on REGISTER and register now so that you can visit our forum and ask the questions that are confusing you so that our expacts will be there to help you or you hate PRECIOUSMONEYCLUB so much that you can't join, then you are in deep shit because you are on your way to paying me cool clean N3,000 because when you call me, i won't listen to you except i receive your teller number crediting my account with N3,000, ok .&lt;br /&gt;&lt;br /&gt;want a verified paypal account within 24 hours?&lt;br /&gt;want a US bank account within 15 minutes?&lt;br /&gt;want a UK bank account within  15 minutes?&lt;br /&gt;want a US mailing address and phone number within 24 hours?&lt;br /&gt;want a UK mailing address and phone number within 24 hours?&lt;br /&gt;want a credit card within 24 hours?&lt;br /&gt;want a clickbank account within 15 minutes?&lt;br /&gt;want a domain name within 48 hours?&lt;br /&gt;want an online money making survey instantly?&lt;br /&gt;want hot money making e books instantly?&lt;br /&gt;want to make at least N50,000 a month printing recharge card and e vouchers?&lt;br /&gt;want to make at least N100,000 to N150,000 a month as a cool internet marketer?&lt;br /&gt;are you underemployed?&lt;br /&gt;are you unemployed?&lt;br /&gt;your employer haven't paid you?&lt;br /&gt;you haven't paid your school fees?&lt;br /&gt;you are facing the hardship of paying your children school fees?&lt;br /&gt;stay at home mums, isn't it time you work at home to earn at least a classic $300 to $1,000 a month?&lt;br /&gt;want to make at least N15,000 to N30,000 daily selling e books?&lt;br /&gt;stay at home mums, want to help your husband financially?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then stop wanting and needing, or are you unemployed or underemployed, your employer accusing you, listen to me, just pick up your phone now as i am talking to you and dial 080precious cashmoney or 048money block buster to get this money worries ended once and for all, it is that easy to make cool cash online when you are focused, targeted, driving and speeding, i assure you that you get exactly what you want because i have been in the same shoes myself and i know how it pains when you wake up each morning and remember that your children haven't paid their school fees and not even a healthy meal for them to eat before going to school is available, oh ship, i'm sorry that this is happening to you because it was all of my fault earlier because i have not accomplished the mission i aimed to achieve as my new year revolution that i will mentor at least 300 Nigeria into block buster money making factory but dear don't worry, it's ok i am finally here to be with you, no more hassles, lets just stop talking too much so that you come with me and join the 84 Nigerians that are already in the BLOCK BUSTER MONEY INDUSTRY call PRECIOUS MONEY FACTORY, please don't be angry with me, if you don't know where to locate it then bell me on phone, i am always here for you, its time to make this dollars rain right inside your room, as you are on bed, you are at the dinnig table, you are in the parlour, are you in the toilet, in the car, maybe in a bar or are you out for sight seeing, then let dollars, euros, pounds and naira rain upon you now , every where you go, people will begin to imagine all you need is just your Laptop or desktop computer, your mobile phone or modem then you are set to go, hey Precious Cashmoney, i don't have money for a computer nor a gprs enabled phone talk more of modem, what should i do? My friend don't worry, may be you can be going to the cybercafe once twice or trice a week and i assure you that within a month all those i don't have will be a forgotten history.&lt;br /&gt;&lt;br /&gt;To start your journey now, remember, IT'S NEVER TOO LATE FOR YOU UNTIL YOU ARE LATE, so don't say at this old age i can go and start thinking of making money, no! throw away that ruthless idea or don't say that i am too young for this, remember, I started when i was only 14 years old and now i am an online money buzz, so don't even think of saying i am poor which capital will i use to start because online business does not demand much capital, i love you so much and i am willing to help you as long as you want to get rich.&lt;br /&gt;&lt;br /&gt;TO YOUR ONLINE SUCCESS,&lt;br /&gt;CEO G-GATE CONNECTIONS &amp;amp;&lt;br /&gt;CEO PRECIOUS MONEY CLUB&lt;br /&gt;PRECIOUS NGWU (a.k.a Cashmoney jr.)&lt;br /&gt;08060374821&lt;br /&gt;048488169&lt;br /&gt;cashmoney4realg@yahoo.com&lt;br /&gt;precious5@rocketmail.com&lt;br /&gt;http://www.preciousmoneyclub.webs.com&lt;br /&gt;http://www.preciousmontheweb.synthasite.com&lt;br /&gt;http://www.ggateconnections.synthasite.com  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/mtn-and-zain-cheat-codes-for-mobile.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-05-05T11:30:00+01:00"&gt;11:30 AM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=912754606057856403" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=912754606057856403" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=912754606057856403" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="2086631770759149302"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/zain-and-mtn-free-internet-browsing.html"&gt;ZAIN AND MTN FREE INTERNET BROWSING CHEAT CODES ON COMPUTER AND MOBILE PHONE&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; Here, i won't talk too much or waste anybodies time rather i will go straight to the point and say the little words that i have for you so read care fully and understand me because i won't go to explain it for those who are just beginning so after seeing the free browsing codes and you don't know what to do, go to the forum and post your problem and i assure you that it will be taken care of within 24 hours.&lt;br /&gt;&lt;br /&gt;MTN FREE BROWSING ON MOBILE PHONE:&lt;br /&gt;&lt;br /&gt;They are two available codes that i have now,&lt;br /&gt;&lt;br /&gt;1) use the normal setting earlier. Homepage:&lt;br /&gt;wap.mtnonline.com.t9space.com/power/m/http/google.com&lt;br /&gt;&lt;br /&gt;2) this code has a France server. Homepage: wap.mtnonline.com/lnk000/=www.google.com&lt;br /&gt;                                                           Proxy address or IP: 081.93.186.116&lt;br /&gt;                                                           Port: 80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MTN FREE BROWSING WITH SOLIBAY AND OPERAMINI MOD:&lt;br /&gt;&lt;br /&gt;I also have two available codes for this now,&lt;br /&gt;&lt;br /&gt;1) use this as server address: wap.mtnonline.com/lnk000/=80.232.117.10:80&lt;br /&gt;&lt;br /&gt;2) use this server address: 10.199.212.8%2fast%3c0@80.232.117.10:80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZAIN FREE BROWSING ON MOBILE PHONE:&lt;br /&gt;&lt;br /&gt;They are two available codes:&lt;br /&gt;&lt;br /&gt;1) wap.ng.zain.com/globalen/px/url/303/google.com&lt;br /&gt;&lt;br /&gt;2) wap.ng.zain.com/globalen/url=www.google.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZAIN FREE BROWSING ON SOLIBAY AND OPERAMINI MOD&lt;br /&gt;&lt;br /&gt;I have only on one available code:&lt;br /&gt;&lt;br /&gt;1) wap.ng.zain.com/globalen/px/url/303/80.232.117.10:80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ETISALAT FREE BROWSING ON MOBILE PHONE:&lt;br /&gt;&lt;br /&gt;I have three available codes:&lt;br /&gt;&lt;br /&gt;1) etisalat.ng.gprs@www.google.com&lt;br /&gt;&lt;br /&gt;2) etisalat.wap.gprs/000/google.com&lt;br /&gt;&lt;br /&gt;3) 10.71.170.5@www.google.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FREE SMS ON MOBILE PHONE&lt;br /&gt;&lt;br /&gt;1) login to http://www.mjoy.com and register for free unlimited text messages&lt;br /&gt;2) visit http://www.bbnsms.com for five free sms a day&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MTN FREE BROWSING ON COMPUTER USING YOUR-FREEDOM&lt;br /&gt;&lt;br /&gt;I have four available codes but i will only disclose three codes:&lt;br /&gt;&lt;br /&gt;1) wap.mtnonline.com%2f.m@ems03.your-freedom.de&lt;br /&gt;&lt;br /&gt;2) loaded.mtnonline.com@ems11.your-freedom.de&lt;br /&gt;&lt;br /&gt;3) 10.199.212.8%2f.80e@ems09.your-freedom.de&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZAIN FREE BROWSING ON COMPUTER USING YOUR-FREEDOM&lt;br /&gt;&lt;br /&gt;I have three available codes but i will only disclose two codes:&lt;br /&gt;&lt;br /&gt;1) wap.ng.zain.com/globalen/px/url/303@ems19.your-freedom.de&lt;br /&gt;&lt;br /&gt;2) ems10.your-freedom.de&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ETISALAT FREE BROWSING ON COMPUTER USING YOUR-FREEDOM&lt;br /&gt;&lt;br /&gt;I have three available codes but i will only disclose two codes:&lt;br /&gt;&lt;br /&gt;1) emso6.your-freedom.de&lt;br /&gt;&lt;br /&gt;2) 10.71.170.5@ems07.your-freedom.de&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FREE DSTV ON COMPUTER&lt;br /&gt;&lt;br /&gt;join http://www.preciousmoneyclub.webs.com and get the settings and software free!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FREE CALLS:&lt;br /&gt;login to jaxtr.com then and register and invite those that you want to be calling for free to register after they have registered, then you can login and call the absolutely free!!!&lt;br /&gt;&lt;br /&gt;FREE INTERNATIONAL CALLS:&lt;br /&gt;&lt;br /&gt;login to www.jaxtr.com, then put in you number in international format and select your country then put n your friend number in international format and select his or her country then click on get jaxtr number and the number will dial on her phone (it's a uk number) once she picks it, you are connected for your free international calls.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, i guess i have done justice to the free browsing codes that you have been worrying me for, anyway they is still something, i guess that if you are not just looking for codes maybe you don't have the settings and you want it, if you copy these codes, it will mean absolutely nothing to you and i said it earlier that these codes are not for people who have not been in the game that it is for those who are already in the game and i will not come and start explaining to make those who are not in the game understand so if you don't know how to apply them or after applying them , it does not work for you.....hahahahahaha, then you owe me the price i want, just click on REGISTER and register now so that you can visit our forum and ask the questions that are confusing you so that our expacts will be there to help you or you hate PRECIOUSMONEYCLUB so much that you can't join, then you are in deep shit because you are on your way to paying me cool clean N3,000 because when you call me, i won't listen to you except i receive your teller number crediting my account with N3,000, ok .&lt;br /&gt;&lt;br /&gt;want a verified paypal account within 24 hours?&lt;br /&gt;want a US bank account within 15 minutes?&lt;br /&gt;want a UK bank account within  15 minutes?&lt;br /&gt;want a US mailing address and phone number within 24 hours?&lt;br /&gt;want a UK mailing address and phone number within 24 hours?&lt;br /&gt;want a credit card within 24 hours?&lt;br /&gt;want a clickbank account within 15 minutes?&lt;br /&gt;want a domain name within 48 hours?&lt;br /&gt;want an online money making survey instantly?&lt;br /&gt;want hot money making e books instantly?&lt;br /&gt;want to make at least N50,000 a month printing recharge card and e vouchers?&lt;br /&gt;want to make at least N100,000 to N150,000 a month as a cool internet marketer?&lt;br /&gt;are you underemployed?&lt;br /&gt;are you unemployed?&lt;br /&gt;your employer haven't paid you?&lt;br /&gt;you haven't paid your school fees?&lt;br /&gt;you are facing the hardship of paying your children school fees?&lt;br /&gt;stay at home mums, isn't it time you work at home to earn at least a classic $300 to $1,000 a month?&lt;br /&gt;want to make at least N15,000 to N30,000 daily selling e books?&lt;br /&gt;stay at home mums, want to help your husband financially?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then stop wanting and needing, or are you unemployed or underemployed, your employer accusing you, listen to me, just pick up your phone now as i am talking to you and dial 080precious cashmoney or 048money block buster to get this money worries ended once and for all, it is that easy to make cool cash online when you are focused, targeted, driving and speeding, i assure you that you get exactly what you want because i have been in the same shoes myself and i know how it pains when you wake up each morning and remember that your children haven't paid their school fees and not even a healthy meal for them to eat before going to school is available, oh ship, i'm sorry that this is happening to you because it was all of my fault earlier because i have not accomplished the mission i aimed to achieve as my new year revolution that i will mentor at least 300 Nigeria into block buster money making factory but dear don't worry, it's ok i am finally here to be with you, no more hassles, lets just stop talking too much so that you come with me and join the 84 Nigerians that are already in the BLOCK BUSTER MONEY INDUSTRY call PRECIOUS MONEY FACTORY, please don't be angry with me, if you don't know where to locate it then bell me on phone, i am always here for you, its time to make this dollars rain right inside your room, as you are on bed, you are at the dinnig table, you are in the parlour, are you in the toilet, in the car, maybe in a bar or are you out for sight seeing, then let dollars, euros, pounds and naira rain upon you now , every where you go, people will begin to imagine all you need is just your Laptop or desktop computer, your mobile phone or modem then you are set to go, hey Precious Cashmoney, i don't have money for a computer nor a gprs enabled phone talk more of modem, what should i do? My friend don't worry, may be you can be going to the cybercafe once twice or trice a week and i assure you that within a month all those i don't have will be a forgotten history.&lt;br /&gt;&lt;br /&gt;To start your journey now, remember, IT'S NEVER TOO LATE FOR YOU UNTIL YOU ARE LATE, so don't say at this old age i can go and start thinking of making money, no! throw away that ruthless idea or don't say that i am too young for this, remember, I started when i was only 14 years old and now i am an online money buzz, so don't even think of saying i am poor which capital will i use to start because online business does not demand much capital, i love you so much and i am willing to help you as long as you want to get rich.&lt;br /&gt;&lt;br /&gt;TO YOUR ONLINE SUCCESS,&lt;br /&gt;CEO G-GATE CONNECTIONS &amp;amp;&lt;br /&gt;CEO PRECIOUS MONEY CLUB&lt;br /&gt;PRECIOUS NGWU (a.k.a Cashmoney jr.)&lt;br /&gt;08060374821&lt;br /&gt;048488169&lt;br /&gt;cashmoney4realg@yahoo.com&lt;br /&gt;precious5@rocketmail.com&lt;br /&gt;http://www.preciousmoneyclub.webs.com&lt;br /&gt;http://www.preciousmontheweb.synthasite.com&lt;br /&gt;http://www.ggateconnections.synthasite.com  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/05/zain-and-mtn-free-internet-browsing.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-05-05T11:16:00+01:00"&gt;11:16 AM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=2086631770759149302" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=2086631770759149302" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=2086631770759149302" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; Labels: &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/search/label/FREE%20CALL" rel="tag"&gt;FREE CALL&lt;/a&gt;, &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/search/label/FREE%20DSTV" rel="tag"&gt;FREE DSTV&lt;/a&gt;, &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/search/label/HACKED%20DECODER" rel="tag"&gt;HACKED DECODER&lt;/a&gt;, &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/search/label/MTN%20AND%20ZAIN%20FREE%20BROWSING" rel="tag"&gt;MTN AND ZAIN FREE BROWSING&lt;/a&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;h2 class="date-header"&gt;Monday, April 27, 2009&lt;/h2&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="2241319735815713333"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/04/free-unlimited-browsing-with-mtn-on.html"&gt;free unlimited browsing with mtn on freedom&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; HI Pal ,&lt;br /&gt;I Just found out a way you can use MTN to Browse absolutely free using you phone or your computer which will be there after interfaced with you system and it work for all phones&lt;br /&gt;but not chinese phones, i believe you know what i mean.&lt;br /&gt;&lt;br /&gt;go to where you put in your configuration for browsing&lt;br /&gt;&lt;br /&gt;homepage: wap.mtnonline.com/lnk000/=www.google.com/&lt;br /&gt;IP: 081.93.186.116&lt;br /&gt;port: 80&lt;br /&gt;&lt;br /&gt;i believe that it works for all phones but if it does not work on you phone then contact me.&lt;br /&gt;&lt;br /&gt;now that you phone browses free, i will introduce to you the latest free browsing software and settings on computer.&lt;br /&gt;i will let you know that i am a king when it comes to free browsing and information marketing, and i have the software and settings for free browsing with mtn (4 codes available), glo (1 code pending), zain (2 codes available), etisalat (1 code available), free dstv (1 code available), i know you understand what i mean by the codes which is just the settings and software, so if you are interested to get these software and settings for free internet browsing that will allow you to browse the internet free 24 hours with mtn, glo, zain or etisalat because i enjoy my 24 hours free uninterrupted browsing on my computer and i think is high time you started enjoying free browsing and stop going to cybercafe rather turn your home to a mini cafe, i will be expecting your mails and calls.&lt;br /&gt;to get this free browsing and free dstv setting and software on computer, just call me on 08060374821 or 048488169 or mail me on cashmoney4realg@yahoo.com to get it.&lt;br /&gt;I am Precious by name.&lt;br /&gt;thanks and get to call me now  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/04/free-unlimited-browsing-with-mtn-on.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-04-27T17:32:00+01:00"&gt;5:32 PM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=2241319735815713333" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=2241319735815713333" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=2241319735815713333" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="6554680443159433549"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/04/how-to-browse-internet-with-your.html"&gt;how to browse the internet with your computer free of chsrge 24 hours&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; HI Pal ,&lt;br /&gt;I Just found out a way you can use MTN to Browse absolutely free using you phone or your computer which will be there after interfaced with you system and it work for all phones&lt;br /&gt;but not chinese phones, i believe you know what i mean.&lt;br /&gt;&lt;br /&gt;go to where you put in your configuration for browsing&lt;br /&gt;&lt;br /&gt;homepage: wap.mtnonline.com/lnk000/=www.google.com/&lt;br /&gt;IP: 081.93.186.116&lt;br /&gt;port: 80&lt;br /&gt;&lt;br /&gt;i believe that it works for all phones but if it does not work on you phone then contact me.&lt;br /&gt;&lt;br /&gt;now that you phone browses free, i will introduce to you the latest free browsing software and settings on computer.&lt;br /&gt;i will let you know that i am a king when it comes to free browsing and information marketing, and i have the software and settings for free browsing with mtn (4 codes available), glo (1 code pending), zain (2 codes available), etisalat (1 code available), free dstv (1 code available), i know you understand what i mean by the codes which is just the settings and software, so if you are interested to get these software and settings for free internet browsing that will allow you to browse the internet free 24 hours with mtn, glo, zain or etisalat because i enjoy my 24 hours free uninterrupted browsing on my computer and i think is high time you started enjoying free browsing and stop going to cybercafe rather turn your home to a mini cafe, i will be expecting your mails and calls.&lt;br /&gt;to get this free browsing and free dstv setting and software on computer, just call me on 08060374821 or 048488169 or mail me on cashmoney4realg@yahoo.com to get it.&lt;br /&gt;I am Precious by name.&lt;br /&gt;thanks and get to call me now  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/04/how-to-browse-internet-with-your.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-04-27T17:09:00+01:00"&gt;5:09 PM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=6554680443159433549" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=6554680443159433549" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=6554680443159433549" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="post hentry uncustomized-post-template"&gt; &lt;a name="4380923819974179826"&gt;&lt;/a&gt; &lt;h3 class="post-title entry-title"&gt; &lt;a href="http://cashmoneyjr-ebooks.blogspot.com/2009/04/free-dstv-and-free-browsing-on-computer.html"&gt;FREE DSTV AND FREE BROWSING ON COMPUTER&lt;/a&gt; &lt;/h3&gt;  &lt;div class="post-body entry-content"&gt; HI Pal ,&lt;br /&gt;I Just found out a way you can use MTN to Browse absolutely free using you phone or your computer which will be there after interfaced with you system and it work for all phones&lt;br /&gt;but not chinese phones, i believe you know what i mean.&lt;br /&gt;&lt;br /&gt;go to where you put in your configuration for browsing&lt;br /&gt;&lt;br /&gt;homepage: wap.mtnonline.com/lnk000/=www.google.com/&lt;br /&gt;IP: 081.93.186.116&lt;br /&gt;port: 80&lt;br /&gt;&lt;br /&gt;i believe that it works for all phones but if it does not work on you phone then contact me.&lt;br /&gt;&lt;br /&gt;now that you phone browses free, i will introduce to you the latest free browsing software and settings on computer.&lt;br /&gt;i will let you know that i am a king when it comes to free browsing and information marketing, and i have the software and settings for free browsing with mtn (4 codes available), glo (1 code pending), zain (2 codes available), etisalat (1 code available), free dstv (1 code available), i know you understand what i mean by the codes which is just the settings and software, so if you are interested to get these software and settings for free internet browsing that will allow you to browse the internet free 24 hours with mtn, glo, zain or etisalat because i enjoy my 24 hours free uninterrupted browsing on my computer and i think is high time you started enjoying free browsing and stop going to cybercafe rather turn your home to a mini cafe, i will be expecting your mails and calls.&lt;br /&gt;to get this free browsing and free dstv setting and software on computer, just call me on 08060374821 or 048488169 or mail me on cashmoney4realg@yahoo.com to get it.&lt;br /&gt;I am Precious by name.&lt;br /&gt;thanks and get to call me now  &lt;/div&gt; &lt;div class="post-footer"&gt; &lt;div class="post-footer-line post-footer-line-1"&gt; &lt;font class="post-author vcard"&gt; Posted by &lt;font class="fn"&gt;FASTMONEY&lt;/font&gt; &lt;/font&gt; &lt;font class="post-timestamp"&gt; at &lt;a class="timestamp-link" href="http://cashmoneyjr-ebooks.blogspot.com/2009/04/free-dstv-and-free-browsing-on-computer.html" rel="bookmark" title="permanent link"&gt;&lt;abbr class="published" title="2009-04-27T17:00:00+01:00"&gt;5:00 PM&lt;/abbr&gt;&lt;/a&gt; &lt;/font&gt; &lt;font class="reaction-buttons"&gt; &lt;/font&gt; &lt;font class="star-ratings"&gt; &lt;/font&gt; &lt;font class="post-comment-link"&gt; &lt;a class="comment-link" href="https://www.blogger.com/comment.g?blogID=5154519457620239712&amp;amp;postID=4380923819974179826" onclick=""&gt;0 comments&lt;/a&gt; &lt;/font&gt; &lt;font class="post-backlinks post-comment-link"&gt; &lt;/font&gt; &lt;font class="post-icons"&gt; &lt;font class="item-action"&gt; &lt;a href="http://www.blogger.com/email-post.g?blogID=5154519457620239712&amp;amp;postID=4380923819974179826" title="Email Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_email.gif" height="13" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;font class="item-control blog-admin pid-322710678"&gt; &lt;a href="http://www.blogger.com/post-edit.g?blogID=5154519457620239712&amp;amp;postID=4380923819974179826" title="Edit Post"&gt; &lt;img alt="" class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-2"&gt; &lt;font class="post-labels"&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="post-footer-line post-footer-line-3"&gt; &lt;font class="post-location"&gt; &lt;/font&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- google_ad_section_end --&gt; &lt;/div&gt; &lt;div class="blog-pager" id="blog-pager"&gt; &lt;font id="blog-pager-older-link"&gt; &lt;a class="blog-pager-older-link" href="http://cashmoneyjr-ebooks.blogspot.com/search?updated-max=2009-04-27T17%3A00%3A00%2B01%3A00&amp;amp;max-results=7" id="Blog1_blog-pager-older-link" title="Older Posts"&gt;Older Posts&lt;/a&gt; &lt;/font&gt; &lt;/div&gt;  &lt;div class="blog-feeds"&gt; &lt;div class="feed-links"&gt; Subscribe to: &lt;a class="feed-link" href="http://cashmoneyjr-ebooks.blogspot.com/feeds/posts/default" target="_blank" type="application/atom+xml"&gt;Posts (Atom)&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="sidebar-wrapper"&gt; &lt;div class="sidebar section" id="sidebar"&gt;&lt;div class="widget Gadget" id="Gadget5"&gt; &lt;h2 class="title"&gt;ESPN&lt;/h2&gt; &lt;div class="widget-content" style="border: 1px solid rgb(153, 153, 153); padding: 2px;"&gt; &lt;iframe id="5" name="5" src="http://1.blogger.gmodules.com/gadgets/ifr?container=blogger&amp;amp;v=b27b31b6522fccad49cfe29d99dcd9ec&amp;amp;lang=en&amp;amp;country=ALL&amp;amp;view=default&amp;amp;url=http%3A%2F%2Fhumanmaze.googlepages.com%2Fespn-sports-rss-feeds.xml&amp;amp;libs=analytics%3Adynamic-height%3Asetprefs%3Atabs&amp;amp;mid=1&amp;amp;up_entries=4&amp;amp;up_summaries=100&amp;amp;up_extrafeed=http%3A%2F%2Fsoccernet.espn.go.com%2Frss%2Fnews&amp;amp;up_extratitle=Soccer&amp;amp;up_subject=ESPN&amp;amp;up_selectedTab&amp;amp;mid=5&amp;amp;parent=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F#up_selectedTab&amp;amp;up_subject=ESPN&amp;amp;up_extratitle=Soccer&amp;amp;up_summaries=100&amp;amp;up_entries=4&amp;amp;up_extrafeed=http%3A%2F%2Fsoccernet.espn.go.com%2Frss%2Fnews&amp;amp;rpctoken=1239258823634346068" style="width: 100%; display: block;" frameborder="0" height="300"&gt; &lt;/iframe&gt; &lt;/div&gt;  &lt;font class="widget-item-control"&gt; &lt;font class="item-control blog-admin"&gt; &lt;a class="quickedit" href="http://www.blogger.com/rearrange?blogID=5154519457620239712&amp;amp;widgetType=Gadget&amp;amp;widgetId=Gadget5&amp;amp;action=editWidget" onclick="'return" target="configGadget5" title="Edit"&gt; &lt;img alt="" src="http://img1.blogblog.com/img/icon18_wrench_allbkg.png" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt;  &lt;/div&gt;&lt;div class="widget HTML" id="HTML1"&gt; &lt;h2 class="title"&gt;A. W. SURVEYS (click on the picture, register and take survey to make money)&lt;/h2&gt; &lt;div class="widget-content"&gt; &lt;a href="http://www.awsurveys.com/HomeMain.cfm?RefID=Precious5"&gt;&lt;img src="http://www.awsurveys.com/Pictures/AWS_ad3_150by150.jpg" height="150" width="150"&gt;&lt;/a&gt; &lt;/div&gt;  &lt;font class="widget-item-control"&gt; &lt;font class="item-control blog-admin"&gt; &lt;a class="quickedit" href="http://www.blogger.com/rearrange?blogID=5154519457620239712&amp;amp;widgetType=HTML&amp;amp;widgetId=HTML1&amp;amp;action=editWidget" onclick="'return" target="configHTML1" title="Edit"&gt; &lt;img alt="" src="http://img1.blogblog.com/img/icon18_wrench_allbkg.png" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt;  &lt;/div&gt;&lt;div class="widget Gadget" id="Gadget4"&gt; &lt;h2 class="title"&gt;Calorie Calculator&lt;/h2&gt; &lt;div class="widget-content" style="border: 1px solid rgb(153, 153, 153); padding: 2px;"&gt; &lt;iframe id="4" name="4" src="http://www.coheso.com/ngadget/index.php?container=blogger&amp;amp;v=f32602cecd7cb73139fbb7affe7f8f&amp;amp;lang=en&amp;amp;country=ALL&amp;amp;view=default&amp;amp;mid=1&amp;amp;rpctoken=-5938000976774875786&amp;amp;mid=4&amp;amp;parent=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F" style="width: 100%; display: block;" frameborder="0" height="280"&gt; &lt;/iframe&gt; &lt;/div&gt;  &lt;font class="widget-item-control"&gt; &lt;font class="item-control blog-admin"&gt; &lt;a class="quickedit" href="http://www.blogger.com/rearrange?blogID=5154519457620239712&amp;amp;widgetType=Gadget&amp;amp;widgetId=Gadget4&amp;amp;action=editWidget" onclick="'return" target="configGadget4" title="Edit"&gt; &lt;img alt="" src="http://img1.blogblog.com/img/icon18_wrench_allbkg.png" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt;  &lt;/div&gt;&lt;div class="widget Gadget" id="Gadget3"&gt; &lt;h2 class="title"&gt;Google Finance Sector Summary&lt;/h2&gt; &lt;div class="widget-content" style="border: 1px solid rgb(153, 153, 153); padding: 2px;"&gt; &lt;iframe id="3" name="3" src="http://1.blogger.gmodules.com/gadgets/ifr?container=blogger&amp;amp;v=963b9c9865164cda5195699ddba2936b&amp;amp;lang=en&amp;amp;country=ALL&amp;amp;view=default&amp;amp;url=http%3A%2F%2Fwww.kodey.com%2Fmodules%2Fgoogle_sector_summary.xml&amp;amp;libs=analytics%3Adynamic-height%3Asetprefs&amp;amp;mid=1&amp;amp;up_country=com&amp;amp;up_showFooter=1&amp;amp;up_fHeight=1&amp;amp;up_nHeight=160&amp;amp;up_tip1=1&amp;amp;up_tip2=1&amp;amp;up_tipd&amp;amp;up_tipr=0&amp;amp;mid=3&amp;amp;parent=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F#up_nHeight=160&amp;amp;up_showFooter=1&amp;amp;up_tipr=0&amp;amp;up_tip1=1&amp;amp;up_tipd&amp;amp;up_tip2=1&amp;amp;up_fHeight=1&amp;amp;up_country=com&amp;amp;rpctoken=8936026884218050802" style="width: 100%; display: block;" frameborder="0" height="160"&gt; &lt;/iframe&gt; &lt;/div&gt;  &lt;font class="widget-item-control"&gt; &lt;font class="item-control blog-admin"&gt; &lt;a class="quickedit" href="http://www.blogger.com/rearrange?blogID=5154519457620239712&amp;amp;widgetType=Gadget&amp;amp;widgetId=Gadget3&amp;amp;action=editWidget" onclick="'return" target="configGadget3" title="Edit"&gt; &lt;img alt="" src="http://img1.blogblog.com/img/icon18_wrench_allbkg.png" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt;  &lt;/div&gt;&lt;div class="widget Gadget" id="Gadget2"&gt; There was an error in this gadget  &lt;font class="widget-item-control"&gt; &lt;font class="item-control blog-admin"&gt; &lt;a class="quickedit" href="http://www.blogger.com/rearrange?blogID=5154519457620239712&amp;amp;widgetType=Gadget&amp;amp;widgetId=Gadget2&amp;amp;action=editWidget" onclick="'return" target="configGadget2" title="Edit"&gt; &lt;img alt="" src="http://img1.blogblog.com/img/icon18_wrench_allbkg.png" height="18" width="18"&gt; &lt;/a&gt; &lt;/font&gt; &lt;/font&gt;  &lt;/div&gt;&lt;div class="widget-content"&gt; &lt;h2 class="title"&gt;Priceline&lt;/h2&gt; &lt;div class="widget-content" style="border: 1px solid rgb(153, 153, 153); padding: 2px;"&gt; &lt;img src="http://gmodules.com/ig/rgp?synd=blogger&amp;amp;lang=en&amp;amp;source=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F&amp;amp;n=5&amp;amp;url1=http%3A%2F%2Fmandybare.googlepages.com%2Fpriceline.xml&amp;amp;url2=http%3A%2F%2Fmandybare.googlepages.com%2Fpriceline.xml&amp;amp;url3=http%3A%2F%2Fmandybare.googlepages.com%2Fpriceline.xml&amp;amp;url4=http%3A%2F%2Fmandybare.googlepages.com%2Fpriceline.xml&amp;amp;url5=http%3A%2F%2Fmandybare.googlepages.com%2Fpriceline.xml" height="1" width="1"&gt; &lt;iframe id="1" name="1" src="http://1.blogger.gmodules.com/gadgets/ifr?container=blogger&amp;amp;v=7ce5781c161de578392ba79ee4043f5&amp;amp;lang=en&amp;amp;country=ALL&amp;amp;view=default&amp;amp;url=http%3A%2F%2Fmandybare.googlepages.com%2Fpriceline.xml&amp;amp;libs=analytics%3Adynamic-height&amp;amp;mid=1&amp;amp;mid=1&amp;amp;parent=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F#rpctoken=-2977392842348025547" style="width: 100%; display: block;" frameborder="0" height="250"&gt; &lt;/iframe&gt; &lt;/div&gt;  &lt;font class="widget-item-control"&gt; &lt;font class="item-control blog-admin"&gt; &lt;a class="quickedit" href="http://www.blogger.com/rearrange?blogID=5154519457620239712&amp;amp;widgetType=Gadget&amp;amp;widgetId=Gadget1&amp;amp;action=editWidget" onclick="'return" target="configGadget1" title="Edit"&gt; &lt;img alt="" src="http://img1.blogblog.com/img/icon18_wrench_allbkg.png" height="18" width="18"&gt;&lt;/a&gt;&lt;/font&gt;&lt;/font&gt;&lt;script type="text/javascript"&gt;le_ad_client="pub-1513076135017878"; google_ad_host="pub-1556223355139109"; google_alternate_ad_url="http://www.blogger.com/img/blogger_ad160x600.html"; google_ad_width=160; google_ad_height=600; google_ad_format="160x600_as"; google_ad_type="text_image"; google_color_border="FFFFFF"; google_color_bg="FFFFFF"; google_color_link="632035"; google_color_url="C88FA2"; google_color_text="BA476B"; //--&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; &lt;/script&gt;&lt;script&gt;window.google_render_ad();&lt;/script&gt;&lt;ins style="border: medium none ; margin: 0pt; padding: 0pt; height: 600px; position: relative; visibility: visible; width: 160px;"&gt;&lt;ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 600px; position: relative; visibility: visible; width: 160px;"&gt;&lt;iframe allowtransparency="true" hspace="0" id="google_ads_frame2" marginheight="0" marginwidth="0" name="google_ads_frame" src="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-1513076135017878&amp;amp;host=pub-1556223355139109&amp;amp;dt=1242011956957&amp;amp;lmt=1241936786&amp;amp;alternate_ad_url=http%3A%2F%2Fwww.blogger.com%2Fimg%2Fblogger_ad160x600.html&amp;amp;prev_fmts=300x250_as&amp;amp;format=160x600_as&amp;amp;output=html&amp;amp;correlator=1242011956436&amp;amp;url=http%3A%2F%2Fcashmoneyjr-ebooks.blogspot.com%2F&amp;amp;color_bg=FFFFFF&amp;amp;color_text=BA476B&amp;amp;color_link=632035&amp;amp;color_url=C88FA2&amp;amp;color_border=FFFFFF&amp;amp;ad_type=text_image&amp;amp;ref=http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dnew%2Bzain%2Bfree%2Bbrowsing%2Bsoftware%2Bother%2Bthan%2Byour-freedom%26hl%3Den%26client%3Dfirefox-a%26channel%3Ds%26rls%3Dorg.mozilla%3Aen-US%3Aofficial%26hs%3Dxvt%26start%3D10%26sa%3DN&amp;amp;frm=0&amp;amp;ga_vid=474794850.1242011957&amp;amp;ga_sid=1242011957&amp;amp;ga_hid=1881140221&amp;amp;flash=0&amp;amp;w=160&amp;amp;h=600&amp;amp;u_h=768&amp;amp;u_w=1024&amp;amp;u_ah=738&amp;amp;u_aw=1024&amp;amp;u_cd=32&amp;amp;u_tz=-420&amp;amp;u_his=1&amp;amp;u_java=true&amp;amp;u_nplug=8&amp;amp;u_nmime=51&amp;amp;dtd=10&amp;amp;w=160&amp;amp;h=600&amp;amp;xpc=UzSZHQTtOT&amp;amp;p=http%3A//cashmoneyjr-ebooks.blogspot.com" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" frameborder="0" height="600" scrolling="no" width="160"&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;/div&gt;&lt;div class="widget AdSense" id="AdSense1"&gt;  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-2370544438436143608?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/2370544438436143608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/05/mtn-and-zain-free-internet-browsing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/2370544438436143608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/2370544438436143608'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/05/mtn-and-zain-free-internet-browsing.html' title='MTN AND ZAIN FREE INTERNET BROWSING SOFTWARE AND SETTINGS HERE'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-6886044744613063198</id><published>2009-05-09T20:48:00.002+01:00</published><updated>2009-05-09T21:17:28.181+01:00</updated><title type='text'>sport betting</title><content type='html'>Saturday, 9th May 2009&lt;br /&gt;Do you want to make cool money predicting on sport betting like football, baseball, basketball, wrestling and so on. So all what you need is to find a person who will give a good tips on sport betting. Here is where to get a good alert on sport betting like soccer, baseball e.t.c that will make you successful in sport betting.&lt;br /&gt; Register for a 1 week free alert and see how it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-6886044744613063198?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/6886044744613063198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/05/sport-betting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/6886044744613063198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/6886044744613063198'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/05/sport-betting.html' title='sport betting'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-6150212519578224157</id><published>2009-04-27T08:15:00.004+01:00</published><updated>2009-05-09T11:53:13.394+01:00</updated><title type='text'>ZAIN FREE BROWSING WITH PC</title><content type='html'>&lt;div style="text-align: justify;"&gt;Saturday,10th of May 2009&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Do you know you can browse free of charge without paying any &lt;span style="font-size:0;"&gt;d&lt;/span&gt;&lt;span style="font-size:0;"&gt;eem&lt;/span&gt;.You can now comfortably use ZAIN to browse on you PC free of &lt;span style="font-size:0;"&gt;charge.&lt;/span&gt; a new software has been developed for that&lt;span style="font-size:0;"&gt;।&lt;/span&gt; this mighty software is programmed in such a way that it does not use any of the nigeria's internet service provider's server eg. ZAIN; instead it uses multiple proxy servers of foreign countries and when surfing the net, it then switches from one to another of the different proxy servers in countries like France, Germany, U.S.A, Canada, Sweden, Switzerland &amp;amp; many many more(about 23 countries). note that this is not a browser itself, but a software one can comfortably use to configure any kind of browser on earth with the help of its settings and manual for the browser to surf the internet extremely fast. supports file/application download no matter the size and browse your different mails with ease just same way it does when using internet disc. As Internet browsing in Nigeria becomes very expensive and slow due to proliferation of fake service providers here and there, this cutting-edge technology not only make the utility, capacity and access to GPRS Internet service simple, but also exposes many that are interested to the money-making opportunity in the industry.&lt;br /&gt;&lt;br /&gt;This cheap Internet connectivity opportunity does not need a modem just your handset which now becomes your modem&lt;span style="font-size:0;"&gt;।&lt;/span&gt; You don’t have to be scared of expensive handset that many believe is the only option for getting Internet access, because now more and more cheap phones are being reconfigured to do the job.if you need the software. its settings and manual&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HOW TO ORDER&lt;br /&gt;&lt;br /&gt;Step I:&lt;br /&gt;&lt;br /&gt;To order, pay the sum 3,000 Only! Into the bank details below:&lt;br /&gt;&lt;br /&gt;Bank Name: GTBank&lt;br /&gt;&lt;br /&gt;Account Name: smart lawson T&lt;br /&gt;Account No.: 491-460-454-1590&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bank Name: Oceanic Bank&lt;br /&gt;&lt;br /&gt;Account Name: smart lawson T&lt;br /&gt;&lt;br /&gt;Account No.: 2090001013136&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step II:&lt;br /&gt;&lt;br /&gt;After payment, sms Your Name, GSM No., Email Address, Teller Number, Branch and Date of Payment to 08036277895&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step III:&lt;br /&gt;&lt;br /&gt;Upon the receipt of this, your payment will be confirmed and then your package will be sent to your e-mail address within 24 hours.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;MONEY BACK GUARANTEE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You are covered by my 30-days No Question Asked, No Risk, Ironclad, 100% Money Back Guarantee i.e. I will give you your money back.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yes! you heard me, I will refund every kobo you paid me if you don't achieve your aim of browsing wherever you wish, whenever you wish using an Internet connection you set up all by yourself following the steps I clearly spelt out in my e-book.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To your online success.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Your friend,&lt;br /&gt;&lt;br /&gt;SENpreneur smart lawson&lt;br /&gt;&lt;br /&gt;(a.k.a delaw)&lt;br /&gt;&lt;br /&gt;08036277895&lt;br /&gt;&lt;br /&gt;CEO: www.freedomworld.blog.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PS: Remember that you are covered by my 30 days money back guarantee.&lt;br /&gt;&lt;br /&gt;PPS: You have nothing to lose. Be the first to know and let others pay you back.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-6150212519578224157?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/6150212519578224157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/04/zain-free-browsing-with-pc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/6150212519578224157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/6150212519578224157'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/04/zain-free-browsing-with-pc.html' title='ZAIN FREE BROWSING WITH PC'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7888298150727175634.post-192542583657270243</id><published>2009-04-07T05:18:00.000+01:00</published><updated>2009-05-02T05:14:26.257+01:00</updated><title type='text'>Making money connecting millions of people</title><content type='html'>&lt;div style="text-align: justify; color: rgb(51, 102, 255);"&gt;From: smart lawson&lt;br /&gt;Date:  Saturday,2nd of May 2009&lt;br /&gt;&lt;br /&gt;Dear Friend,&lt;br /&gt;&lt;br /&gt;Gprs-enabled Internet browsing system has gone nuclear with GSM service provider swearing to make it as cheap as penny stocks, putting the opportunity for making money right in your hands. The good thing about this investment window is that, it is affordable and accessible. Many business-conscious individuals are looking for the above-listed qualities; hence, you will surely find your bank account flooded with cash knowing how to configure this system for others.&lt;br /&gt;&lt;br /&gt;As Internet browsing in Nigeria becomes very expensive and slow due to proliferation of fake service providers here and there, this cutting-edge technology not only make the utility, capacity and access to GPRS Internet service simple, but also exposes many that are interested to the money-making opportunity in the industry.&lt;br /&gt;&lt;br /&gt;This cheap Internet connectivity opportunity does not need a modem just your handset which now becomes your modem. You don’t have to be scared of expensive handset that many believe is the only option for getting Internet access, because now more and more cheap phones are being reconfigured to do the job.&lt;br /&gt;&lt;br /&gt;BROWSING OPTIONS&lt;br /&gt;&lt;br /&gt;(a) 24Hrs Browsing with N500 Only:&lt;br /&gt;&lt;br /&gt;Now, anybody can have access to the Internet on demand 24hrs as low as N500. Unbelievable! I can hear you scream. But that is the true story now about mobile Internet. And that is why you can make money helping others connect to this N500 internet on-demand service.&lt;br /&gt;&lt;br /&gt;Okay, even if you don’t see what I’m seeing, maybe this one will explain it better. Let’s assume you just want to browse now, all you need to do is take your GSM phone, load at least N500 credit, type in and send the required codes and off you go browsing the Internet for a whole day. The service expires after 24 hours, so you are not required to keep paying the N500 until when you want to browse again. You can call it pay-as-you-browse – that is exactly what it is. You only pay when you want to browse. Now tell me who cannot afford this service? That is why you can make money by configuring this system for others. You must understand that without this configuration, N500 credit will only browse for only 30 minutes. I repeat, for just 30 minutes and that is a big loss, hence you must have to configure your intended browsing outlet; that is your PC or laptop for the purpose and then send a special code to the service provider who will then deduct N500 from the regular recharge card loaded on your phone and thus, give you 24 hours access to the internet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(b) Night Browsing with Ease @ N2,500:&lt;br /&gt;&lt;br /&gt;The second option has to do with night browsing. That is if you work in a place or your job does not give you time to browse during the day, or you want to enjoy the calmness of the night for efficiency purpose, you can go for the night browsing option which will cost you N2,500 per month. To do this, you load N2,500 credit on your phone, instead of N500 and send the browsing special code to the network operator that will deduct the money for the night browsing option for a full month; that is after your phone SIM card and PC or laptop has been configured for the purpose. The good thing about this is that when it expires, you can renew it by repeating the process or you can change to other browsing option.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(c) 30-days Browsing 24/7 @ N10,000:&lt;br /&gt;&lt;br /&gt;For this 24 hours 30-days option, you simply buy N10,000 worth of recharge card loaded on your phone and send the special code and you are on for one month browsing. But note that you cannot have access to that SIM card to make calls while browsing with that SIM or phone, while any of these opportunities last.&lt;br /&gt;&lt;br /&gt;MONEY-MAKING OPPORTUNITY&lt;br /&gt;&lt;br /&gt;Nine out of every ten (10) people interviewed want to have access to the Internet and you too are one of them. You have been eager to have your own Internet connection for long now. Millions of others like you are out there also and that’s where you come in, helping them get connected, while you get rich doing it.&lt;br /&gt;&lt;br /&gt;The moment you know how to configure this system after purchasing and reading my simple step-by-step graphical manual, you can go out there and start doing the installation for people (including your friends) and organizations who are interested in the service and of course, for a fee. So, if you install for a hundred (100) people charging each of them N10,000 minimum, that is a whopping sum of N1,000,000 for you as turnover. Thus, you make money in three ways:&lt;br /&gt;1. Connecting people one on one.&lt;br /&gt;&lt;br /&gt;2. Teaching people via seminars how to do it.&lt;br /&gt;&lt;br /&gt;3. Selling the browsing phone to your client.&lt;br /&gt;&lt;br /&gt;As a Computer Engineer who has been rubbing shoulders with the Internet since 2001, I have prepared the manual in a way that even if you have not done any Internet connection before, you can now do it yourself guaranteed. In other words, it is a graphical, simple and easy to follow step-by-step manual; showing all the pictures for your understanding.&lt;br /&gt;&lt;br /&gt;This Internet browsing stuff I'm talking about is MTN and service i.e MTN 3.5g Broadband Internet service. But what I've done is just preparing a manual that will put you through on how to install it for yourself and make money connecting other people.&lt;br /&gt;&lt;br /&gt;The Major Difference is this:&lt;br /&gt;&lt;br /&gt;MTN will not teach you how to connect yourself to the Internet but this manual will teach you step-by-step.&lt;br /&gt;&lt;br /&gt;MTN will tell you to buy their modem for N25,000 before connecting you to the internet. But with this manual, you'll know how to turn your GSM phone to modem. Thus, you're saving money from not buying MTN modem.&lt;br /&gt;&lt;br /&gt;MTN will not teach you how to connect other people to the Internet and make money. But with this manual, you'll know how to make money connecting other people to the Internet. Thus, you becoming Internet Service Provider (ISP) connecting people to the Internet and of course, for a fee.&lt;br /&gt;&lt;br /&gt;Personally, I make N10,000 per laptop or desktop computer configuring this extremely cheap Internet access for people here in Lagos and Osogbo.&lt;br /&gt;&lt;br /&gt;Nigeria has over 50 million GSM subscribers at the moment and most of these are young hard working people who are anxious to have Internet access.&lt;br /&gt;&lt;br /&gt;This may turn out to be one of the most lucrative skills you learn in your life. The craze for Internet access is spreading like a wild fire at the moment.&lt;br /&gt;&lt;br /&gt;Take advantage of it by securing this knowledge right now.&lt;br /&gt;&lt;br /&gt;Proof of some recent orders and how people are queuing to get it...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Benefits of Having Your Own Fast But Cheap Internet Access&lt;br /&gt;&lt;br /&gt;It is a 3.5g broadband Internet connection. Very fast and reliable compared to dial-up internet connections&lt;br /&gt;&lt;br /&gt;You can browse anywhere in Nigeria including your village. That is you make money offering mobile internet browsing services to others anywhere, anytime.&lt;br /&gt;&lt;br /&gt;It is flexible and adjustable to your business and work schedule; and offering this service to others you charge for configuration and installation.&lt;br /&gt;&lt;br /&gt;It is transferable from your office PC to your home PC giving you an option of offering such service anywhere with one time payment to the service provider.&lt;br /&gt;&lt;br /&gt;You can use it anywhere you go from office to car to home and to travels, browsing anytime you want to.&lt;br /&gt;&lt;br /&gt;It is internet on-demand i.e. it is only when you want to browse that you load and send the special code before browsing.&lt;br /&gt;&lt;br /&gt;Check emails, fill forms, search for jobs, and chat on yahoo!, msn, skype, and aol.&lt;br /&gt;&lt;br /&gt;It is pay-as-you-browse stuff unlike other internet service that you pay N10,000 per month at the end of which you're able to browse for say 15 - 20 days.&lt;br /&gt;&lt;br /&gt;If by next month you don’t have money to go for the one month option, you can switch to one day off option or the night browsing option.&lt;br /&gt;&lt;br /&gt;Make money helping students in your community register for WAEC, NECO, JAMB, POST UME and other examinations as well check the results.&lt;br /&gt;&lt;br /&gt;Trade forex and monitor your stocks, news and the weather.&lt;br /&gt;&lt;br /&gt;Suitable for lawyers, doctors, bankers and other professionals who want to keep abreast of developments in their careers&lt;br /&gt;&lt;br /&gt;Read your favorite newspapers online [both foreign and local]&lt;br /&gt;&lt;br /&gt;Can be used to access and print recharge card vouchers for MTN, GLO, ZAIN, STARCOMMS, RELTEL, etc fast and securely.&lt;br /&gt;&lt;br /&gt;and lots more.&lt;br /&gt;&lt;br /&gt;By ordering for this package, you are positioning yourself for the new year in advance because a lot of people have not know this browsing stuff. So, be the first to know and let others pay you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bonus #1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you order for this package right away, you will get the following bonus:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ Business Plan for Internet Marketers sells for $10.99&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ Adsense - The Dollar Producing Factory by Rebecca Hubbard sells for $17&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ Email Writing Secrets "How To Write Killer Promo Emails That Get Massive Results!" by Jason Oickles sells for $27&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ Article Writing Secrets by Jeff Dedrick sells for $47&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ Boost Your Traffic sells for $12.50&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ How to Create Profit-Producing Sales Letter by Getting Inside Your Customer's Head!&lt;br /&gt;(The Psychology of Selling) by Bryan Kumar sells for @ $35&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;√ How Do I Get Started? "The Practical Guide to Starting a Thriving Online Business by Bryan Winters" sells for $35&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bonus #2 (Just for The First 30 people to Order)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FIRST 30 TAKERS BONUS&lt;br /&gt;&lt;br /&gt;If you are "lucky" enough to be among the first 30 people to order this week, you will get the following extra bonuses:&lt;br /&gt;&lt;br /&gt;√How To Open A ClickBank Account in Nigeria For FREE&lt;br /&gt;&lt;br /&gt;√How to open a U.S.A Bank Account in Nigeria&lt;br /&gt;&lt;br /&gt;√How to open a Paypal Account in Nigeria&lt;br /&gt;&lt;br /&gt;√Blogging to the Bank 2.0 - How to Create Highly Profitable Blogs That Suck In Thousands of Targeted Visitors Every Day by Rob Benwell ($25 Value)&lt;br /&gt;&lt;br /&gt;Rob Benwell, author of the e-book, Blogging to the bank 2.0! , is a british blogger who uses blogs to make a six figure income. In blogging to the bank 2.0, he reveals his secrets so that you can follow in his footsteps.&lt;br /&gt;&lt;br /&gt;Blogging to the bank 2.0 is an excellent book, especially for the newbies whishing to set up their first blog. Rob Benwell book will take you by the hand and show you what to do and where to start, using wordpress. With Robs help you will soon have a blog that is earning you money.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So how much is this great package going to cost you? I can hear you ask?&lt;br /&gt;&lt;br /&gt;Do you think it should go for N10,000? No, I won't charge that much.&lt;br /&gt;&lt;br /&gt;Do you think it should be N7,500? I think that will be too much for you.&lt;br /&gt;&lt;br /&gt;What about N5,000? That should be okay but I think there are students out there who can't afford it.&lt;br /&gt;&lt;br /&gt;Okay... What about N3,500? Afterall, that is what some people are charging out there.&lt;br /&gt;&lt;br /&gt;N2,000 seems okay. But I will still come down for you.&lt;br /&gt;&lt;br /&gt;Seems I'm going crazy.&lt;br /&gt;&lt;br /&gt;Okay.Okay..Okay... N1,500 is the price.&lt;br /&gt;&lt;br /&gt;You will have to pay only N1,500 if you place your order quickly from now till Friday 17th April, 2009. After this date, the price will jump up to N5,000.&lt;br /&gt;&lt;br /&gt;So there you go. With just N1,500 you will get this step-by-step and easy to follow graphical manual on "how to browse the Internet 24hrs with N500 only and make millions connecting other people".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MONEY BACK GUARANTEE&lt;br /&gt;&lt;br /&gt;You are covered by my 30-days No Question Asked, No Risk, Ironclad, 100% Money Back Guarantee i.e. I will give you your money back.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yes! you heard me, I will refund every kobo you paid me if you don't achieve your aim of browsing wherever you wish, whenever you wish using an Internet connection you set up all by yourself following the steps I clearly spelt out in my e-book.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HOW TO ORDER&lt;br /&gt;&lt;br /&gt;Step I:&lt;br /&gt;&lt;br /&gt;To order, pay the sum of N1,500 Only! Into the bank details below:&lt;br /&gt;&lt;br /&gt;Bank Name: GTBank&lt;br /&gt;&lt;br /&gt;Account Name: smart lawson T&lt;br /&gt;Account No.: 491-460-454-1590&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bank Name: Oceanic Bank&lt;br /&gt;&lt;br /&gt;Account Name: smart lawson T&lt;br /&gt;&lt;br /&gt;Account No.: 2090001013136&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step II:&lt;br /&gt;&lt;br /&gt;After payment, sms Your Name, GSM No., Email Address, Teller Number, Branch and Date of Payment to 08036277895&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step III:&lt;br /&gt;&lt;br /&gt;Upon the receipt of this, your payment will be confirmed and then your package will be sent to your e-mail address within 24 hours.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NOTE: Payment before 25th April, 2009 - N1,500&lt;br /&gt;Payment after 25th April, 2009 - N5,000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To your online success.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Your friend,&lt;br /&gt;&lt;br /&gt;SENpreneur smart lawson&lt;br /&gt;&lt;br /&gt;(a.k.a delaw)&lt;br /&gt;&lt;br /&gt;08036277895&lt;br /&gt;&lt;br /&gt;CEO: www.freedomworld.blog.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PS: Remember that you are covered by my 30 days money back guarantee.&lt;br /&gt;&lt;br /&gt;PPS: You have nothing to lose. Be the first to know and let others pay you back.&lt;br /&gt;&lt;br /&gt;PPS: After April 25th February 2009, the price will jump up to N5,000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SOME OF YOUR BONUS AT A GLANCE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Selling @ $27 Selling @ $17 Selling @ $47 Selling @ $12.50&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Selling @ $35 web counter&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;BE THE FIRST TO KNOW AND LET OTHERS PAY YOU BACK&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SO, PLACE YOUR ORDER NOW&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7888298150727175634-192542583657270243?l=delawcomputerworld.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://delawcomputerworld.blogspot.com/feeds/192542583657270243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/04/making-money-connecting-millions-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/192542583657270243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7888298150727175634/posts/default/192542583657270243'/><link rel='alternate' type='text/html' href='http://delawcomputerworld.blogspot.com/2009/04/making-money-connecting-millions-of.html' title='Making money connecting millions of people'/><author><name>THE RIGHT WAY TO SUCCEED</name><uri>http://www.blogger.com/profile/17769862011934234780</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/-pyEdOeWci1o/Thb5F-C1gdI/AAAAAAAAABA/JVUdlOGmZcI/s220/lawson.jpg'/></author><thr:total>0</thr:total></entry></feed>
