Understanding the Basics of Java Programming

In this article, we discuss about basic Java programming. How to start to write a Java program code, and most important is to understand the basic concepts of object-oriented programming.

Object Oriented Programming

Object-oriented programming is a programming parts can be correlated with real objects in everyday life. Understanding of object-oriented programming into the foundation when we learn the basics of Java programming.

Case Sensitive

Java is an object-oriented programming language that has the properties case sensitive. Case sensitive means that there is a difference between "M misspelled" with "m misspelled". Unlike capital letters and small letters will give a different meaning. For more details, will be explained later.

Tool

"Place" writing and "tools" to execute a JAVA program made separately. Typically, use notepad to write programs that will be stored in .JAVA extension. Then, be compile and executed using the command prompt.

There are several tool which makes them into a unity. For example, JCreator, NetBeans, or Visual J ++. With tools, we can write a program, compile and execute with a "tool".

Actually, it is not advisable to use tools in the writing program. With tools, a lot of which is automatic. So, we become spoiled and will not understand the basic concepts of Java programming.

Problems complained mostly students and students when learning basic Java programming is on understanding Object Oriented Programming (OOP). Before discussing more about OOP, will be discussed first "how to start" learning to program with the Java programming language.

Software

The use of software to prepare the Java Development Kit as Virtual Machine. Java Development Kit (JDK) can be downloaded for free. JDK and installation instructions can be found in http://www.oracle.com/technetwork/java/javase/downloads/index.html

To type a program code can be used notepad. Once the program is completed typed, the file is saved with the extension of Java. For compile and the execution of the program, use the command prompt.

Jar

JAVA programs can be made "stand alone". The trick is to create a program with the extension jar. Jar file can be created manually. But, for the more easy it can be to use Netbeans. Netbeans is not a paid software, can be downloaded from the link earlier.

Hello World

As usual, we are always invited to write "Hello World" when starting to learn a new programming language. Similarly, when it began studying the basic Java programming. How to display text to the JAVA programming language? Here is an example of a program that will display "Hello World" on the screen.

public class Hello World
{
  public static void main (String args [])
  {
  System.out.println ("Hello World");
  }
}

Public Class

Public class is a class that is public, accessible from outside the program. Public class for this program called Hello World. Naming the class file must be the same as the public. So, this file name is Halo Dunia.Java.

Print String

The essence of Hello World Java program is to display the string "Hello World". Statement System.out.println ("Hello World"); produce a display Hello World on the screen when executed.

Comments

Although we sometimes lazy to write comments on the programs that we make, it is very useful in the future. Classes, methods, variables, and parameters that we make do not always have a name that reflects its function.

Example, for a variable length of a square, pp written. For now maybe we can remember. But, one day we can forget what it stands pp. Therefore, it is important to write a comment on a variable line or anything that requires explanation.

To write a short description, beginning with "//". For example, variable length // square. This method is used to write comments written on one line. If the statement is quite long, how to write is by flanking comments with / * and * /. Here is an example of writing.

/ * rectangle is a quadrilateral that has four equal angles is 90 degrees * /

At the time of program execution, the comment will not be displayed. This comment only helps us to understand the commands that exist in the script programs.

Declaration

Variable declaration or method adapted to the needs. If a variable or method it is public, instead of being keyword "public", also written in the body of a public class program. If a variable or method it is private, given the keyword "private" and is written in a particular class that requires a variable or method it.

  • Examples of writing a public variable, ie public String post.
  • For variable private, written tulisan2 private String.

Starting and Ending

In writing the program, usually the agency programs that do a particular process is limited by the "start" and "end". If the pascal used "Begin" and "End", then the Java programming language used "{" and "}".

OOP vs Procedural

Java is an object oriented programming language or Object Oriented Programming (OOP). What are the different object-oriented programming language with a procedural programming language such as turbo pascal?

Procedural programming languages execute the program sequentially, starting from the first line to the last line of program code. In contrast to object-oriented programming language that has many class or method. The process is not always sequential program execution from the first row to the last row.

Method main is method are executed first. Thus, main method can be considered as method parent. All method or class the other was called here. Example main method is as follows.

public static void main (String args [])
  {
  System.out.println ("I executed first");
}

Method main this is public. Args parameter (an array) in the form of a string variable. Method This displays the words "I first executed" on the monitor screen.

Object Oriented Programming

Java including Object Oriented Programming language or Object Oriented Programming. OOP programming is usually abbreviated simply is considered "something" as objects that have properties.
To make it easier to learn about OOP in a basic understanding of Java programming, example object directed at objects or humans and other living things around us.

Object

Object here is something that has properties. For example, we take the example of a table object. If we call the "table", which comes to our mind is the various kinds of tables with different sizes, colors, and other properties. So, the object is something that has certain properties.

Java language is a programming language that is case sensitive. That case sensitive is sensitive to capital or non-capital letters. So, if it is written "Table", will be different from the "table". For the name of the object in the Java language, letters are usually written with a capital letter in the future. In this discussion, we suppose that the table object is written to the "table".

Object instantiation

Table object in question is still not clear. Table where? In a house there are several kinds of tables. For example, there are 4 tables with shapes and different sizes. Dining table, coffee table, child study table, workbench father.

Before describing the properties of the object, first we have to declare of each object. Each different table should be given different names as well.

For example, Mr. Andi had 4 children named Ana, Bona, Cici, and Dodo. Each has a desk. To study table Ana, Bona, Cici, and Dodo each named mba, MBB, mbc, and mbd.

Giving the name of each object in the Java programming called instantiation. Here's how the objects instantiated table.

  • Meja Mba = new Table ();
  • Meja MBB = new Table ();
  • Meja Mbc = new Table ();
  • Meja Mbd = new Table ();

For another instance of the object table as well as how to write it.

  • Meja Mm = new Table (); // dining table
  • Meja Mt = new Table (); // coffee table
  • Meja Mk = new Table (); // workbench father

From the few examples given, visible object or objects that have been instant and written with the non-capital letters. Try the instant object naming is not too long. Maximum 3 letters only because instant later the object name will be written over and over again.

For those of you who do coding by using the tool, will not be too bothered. But, for those who write program code using notepad, be quite tiring. However, again I remind you, is not recommended to use tool when you're trying to understand the basic Java programming.

Method

Method can also be interpreted as a method or means. Tables with different sizes produce different volumes. How to calculate the volume of a table called method. If the pascal language we know the procedure or function, the well known Java method.

Java programming can be more easily developed if the understanding of the basic concepts of Java programming is quite strong. Therefore, strengthen basic understanding of OOP concepts. Hopefully the correlation between Java programming with objects around us in this article can help you to more easily understand the basic Java programming.

Various Java Application Program

Java Application Program
The more widespread use of mobile phones among the people making various programs has mushroomed as a Java application. Yes, various Java Application Program that can be applied on mobile phones is very interesting to talk about. However, before discussing the Java Application Program, it helps us see first a little story about what it is Java and Java programming language.

What Is Java?


Java is a name that actually has a lot of meaning. Java as a British term for Java, or Java as an application of computer and mobile phone. However, in Indonesia, Java is more often associated with existing applications on computers and mobile phones, such as the Java programming language, the Java platform, and the application made of the Java programming language that runs on the Java platform.

Java or Jawa?


Many are still wondering why this is called the Java language? Are Gosling Java Javanese or descent? Not at all. Java is a British-American slang which means "coffee; coffee beans". From here, you must have guessed why the logo used language or the Java platform is a cup of coffee.

Java Programming Language


All Java Application Program created using the Java programming language. The Java programming language is a programming language developed by James Gosling at Sun Microsystems which is now owned subsidiary company Oracle Corporation. This language was released in 1995 and became a core component of the Java platform created by Sun Microsystems.

This language is a derivative of the C language and C ++, but has a simpler object model and a low-level facilities less and are general-purpose, class-based, and object-oriented. Programs created using the Java language implementation dependent as possible on the operating system.

Principles. Write once, run anywhere is the philosophy of the creation of applications using the Java language. Thus, the purpose of language is Java applications can run on the platform and any operating system (to be multiplatform). Hence also, the Java language has become the most popular language in the world.

Java Platform


As a platform, known as the Java JVM or Java Virtual Machine. Called Virtual Machine because the concept is similar to an emulator. Before running a Java application, the operating system must have a first runtime for the Java Virtual Machine. If it is already installed, you are free to run any Java application.

Fortunately, most operating systems have included the Java runtime in its completeness. Even so, update the JVM is still needed to maintain the stability and compatibility of the JVM itself to a variety of changes, growth, and repair.

Java Application


Applications or programs which are built using the Java programming language called Java application. Excellence program Java applications than applications built using another language is broad compatibility in a variety of platforms and operating systems.

Concept. Write once, run anywhere means that once the program is written, you can run it on any platform and operating system for Java applications and the JVM supports. This is in contrast with programs written using other programming languages such as C, C ++, or Visual Basic.

Java Application Program Examples


Various Java application program, both of which can be used in a computer or mobile phone you can easily get. One of the many places that provide a Java application program this is the internet. On the internet, a variety of programs you can download Java applications with ease. Not only that, most of the Java application program that is spread on the internet is free and only a few are paid.

Here is an example of a Java application program that you can get on the Internet.

1. Browser

Opera Mini and Ucweb could be one of the Java Application Program for the purpose of browsing the most famous. & nbsp; Yes, Who is not familiar with the Java application program made this Opera? Almost every mobile phone that has Java applications and access GPRS or 3G connection must have this feature rich browser. In fact, Nokia Communicator 9300 series and 9500 fitted with the application as a standard feature.

Opera Mini itself is imported Opera program that is also quite popular in the PC platform. Application Opera is located in the PC platform itself was originally a Java application into an application before finally patented a specific platform. Opera Mini is a Java application program that is widely used for internet browsing. In addition to Opera Mini, a Java application program that can be used for browsing is ucweb.

2. For Instant Messenger

eBuddy is one of the Java application program among the most popular instant messenger lovers. Yes, people familiar with eBuddy as chat programs. Indeed, more accurately described as eBuddy messenger application.

Messenger is a type of application that helps users write to each message with others who have a registered account on the same domain, such as Yahoo Messenger or Facebook.

In addition to eBuddy, there are a variety of other Java application program that is also an instant messenger application. Some of them, such as bing, Bombus, gizmo, GoTalk mobile, Hibaru_Mig_antifreeze, Mig33_beta, Mig33_Plus, Movamessenger, Nimbuzz, shMessenger, Talkonaut, YehBa, YaGo, and Yamee.

3. Creating Documents

ThinkFree Office is a Java application program that is not as famous as Opera Mini and eBuddy. Application office suite similar to Microsoft Office is built using the Java language. This application is made by Haansoft Thinkfree Co., Ltd., a subsidiary of Haansoft Corporation. This application has two versions: online and offline.

ThinkFree Office ThinkFree Office applications online is taped to the website. This version is similar to Google Docs, which is a package of office applications that can be accessed online. <br /> his offline version sells for 42 euros.

The offline version is similar to the online version. The only difference is the purpose of using the internet connection to open, edit, and save files. In addition, the price is quite cheap can be selected to compete with Microsoft Office that cost is still exorbitant.

4. Utility

This utility program is a Java application that created the various Java applications to complement dipasanginya hardware. Some Java application program that fall into the category utility, among BenqFM, Dros, dros_Halmer, FileExplorer, File_Protect, FileLock_1_1, JBenchmark1.06616, kaspersky_anti-virus, mobileGuard, MobyExplorer, scanners, Zeus, and Zeus_Halmer.

5. Other

A variety of Java Application Programs are not limited to those discussed in the previous point only. There are still several other Java application program that can be used for various purposes, such as Calculator, Dictionary English-Indonesian, MobileMaths_V16, Worldmate, Sahih Bukhari, Sahih Muslim, and many others.

Well, that's diverse Java Application Program that you can all enjoy. Complete, is not it?

Programming Language

Programming Language
Programming Language is a software that is in charge of converting the architecture and algorithms are designed humans into a format that can run computer, examples of programming languages including: BASIC, COBOL, Pascal, C ++, FORTRAN programming language, or often termed also with computer languages, is the technique of command / instruction standards to govern computer.

This programming language is a set of rules of syntax and semantics are used to define a computer program. This language allows a programmer can specify exactly which data will be processed by a computer, how this data will be stored / transmitted, and precisely what kind of steps to be taken in a variety of situations. According level programming language consists of Low Level Languages, Languages middle level, and high-level language support.

Key Programming Language Mastering HTML


Learning communication and information technology may not be obtained instantly and quickly. The time it takes a very long time because of the complexity of the materials studied. Information technology disciplines one of which is the variety of programming languages. Programming Language is usually made to support the creation of applications to use a user or users.

Of the many programming languages course you already know HTML programming language. Currently around the world are already using it in the application form on the internet website. Sites that are browsing all use it.

HTML stands for Hyper Text Markup Language is a programming language to create a website application that standard has been used since the internet was first launched in the world. Nature that can be integrated with other similar programming languages, makes a lot of programmers are required to master it.

Becoming a Language Programming HTML


Then if only a programmer who spent her college for a few years who can master it? The answer is certainly not. Lots of facts on the ground prove a basic science with disciplines outside computer can master it.

This you can do with the master key to implementing this HTML programming language. Before you begin you need to know some of the main elements contained in the following tips. Tips that will support you to master it. Among them is the term tags, attributes, values and closing tags.

Tag is the core command in a script-based HTML. Create a script that can be executed by the browser is this tag.

WELCOME TO OUR WEBSITE!

Specification:

<"For the browser to read a script-script in a website.

Tags provided by HTML programming language to suit their respective functions. To remember or memorize hundreds the number of tags available. It seems still impossible for those who are self-taught. However, with practice and apply the tips below you will be easier to master.

Furthermore, after the tag will continue execution using the HTML programming language is an attribute.

= "justify"> called attributes. Attributes used in the tags. Able to deliver results that look different or varied in web pages. The above example is an HTML tag that will execute a paragraph to the left right.

Followed by "WELCOME TO OUR WEBSITE", this is called the value or the contents of which will be displayed in a website. Data can also be called in a website. Since the user when accessing the website address that will appear on the screen and read is the text.

Do not forget to close a tag in the HTML using the lid tag. Closing an HTML tag using the "/".

Mastering Tips on Programming Languages HTML


Through practice and often perform experiments to create a website is the best way to sharpen it. However, it could be time consuming. You should begin to implement key controls the following html programming language.

After knowing tags, attributes, values and closing tags, you can apply now. As we know the tag is a command that has been provided by HTML as well as its attributes. No value or the contents of which had been prepared by the HTML and there is data information to be presented to the user.

Do not forget to always use the closing tags so that a script is executed by the browser. Application together with the formula for writing a script tag in the HTML tag. Each has difficulty building an HTML based website, you just need to unlock the secrets.

This should continue until the command has been provided HTML tags are mastered. The key to mastering the HTML programming language can serve as a dictionary. Dictionary that will accompany you in mastering HTML.

Have a nice try!

History of The Algorithms

The History of Algorithms
Do you know about the history of the algorithm? The algorithm is a step-by-step problem solving logically arranged systematically and logically. These steps can be translated in stages from beginning to end.

Currently, the algorithm is also known as the heart of computer science or informatics. This is due to the many branches of computer science algorithms referred to in terms, for example as follows.

  • Routing algorithm (routing) messages in a computer network.
  • Berensenham algorithm to draw a straight line (the field of computer graphics).
  • Algorithms Knuth-Morris-Pratt to look for a pattern in the text (the field of information retrievel).

Algorithm History

The algorithm is derived from the name of the author of the book, namely Abu Ja'far Muhammad ibn Musa al-Khwarizmi who comes from Uzbekistan. Westerners call Al-Khwarizmi with Algorism.

At that time, Al-Khwarizmi wrote a book entitled Al Jabar wal-Muqabala, which means 'Book Restoration and Reduction' (The Book of Restoration and Reduction). From the title of the book, we also derive the word "algebra" or commonly known as algebra.

Abu Abdullah Ibn Musa al-Khwarizmi (770M-840M) was born in Khawarizm (Kheva), a city located in the south of the Oxus River (now called Uzbekistan) at 770 M. Al-Khwarizmi was one of the famous scientists of his time. There are several branches of mathematics were successful discovery, among others, known as astronomers and geographers.

Initially, the algorithm is a term that refers to the rules of arithmetic means are useful to resolve the problem by using numerical numbers Arabic.

First use of Algorithms

In 1950, the algorithm was first used in Algorithm Eucliden (Euclid Algorithm). Euclid himself is an math expert from Greek who was born around 350 BC. Euclid wrote a book called Element.

In the book, described the steps for finding the greatest common divisor (greatest common divisor) of two integers, namely m and n. However, Eucliden at the time did not mention that the way the algorithm is the method used. This new algorithm is referred to as the modern centuries.

Feature of Algorithm

Five traits that must be possessed algorithm to be correct algorithm is as follows.


  • The algorithm must stop after finite steps work. In this case, if the steps have been followed and executed, the algorithm must be stopped.
  • Each step must be defined so as not to have two meanings (ambiguous).
  • The algorithm has zero or more inputs (input).
  • The algorithm has zero or more output (output).
  • The algorithm should be effective, simple steps that have to be done with effective time.

Understanding the Basic and Type of Algorithm

Basic and Type of Algorithm

Basic Algorithm


In a simple algorithm can be referred to as a way of doing things. Algorithms can also be defined as the sequences of how a problem is solved. Nevertheless, the experts agreed to define algorithms as logical sequences in the decision to solve a particular problem.

Fundamentals of algorithm needs to be clearly understood by a programmer that programs be made more effective and efficient. As an example, let us discuss how the algorithm in making noodles boiled. What would you do first to make boiled noodles?

The first step of course you have to open the packs of noodles boiled. After that, you will prepare a cooked water for approximately 5-10 minutes. When the cooking water and start to boil, remove it from the wrapper and noodles boiled then input into the cooking water boiling.

While the noodles boiled, remove the spices in a pack, then open the pack of seasoning and pour into the prepared dishes. If you see the noodles have cooked, prepare the filter, and then strain the noodles that have been cooked.

Pour the noodles that have been cooked into the dish which had contained seasoning. Give a little hot water to replace the water that has been boiled before you waste.

The sequences are indeed looks quite logical. The sequences are indeed looks quite simple because the issue presented is not too complex. Then, what if the problem faced quite complex? Of course this requires a special strategy in designing appropriate algorithms.

Algorithm Type


Based on the type, the algorithm can be divided into 3, which is as follows.

1. Sequence


This algorithm requires the type of logical sequencing of each phase of problem solving. One example of this type of algorithm is cooking noodles boiled over. Precedence should not be reversed, in order to form a logical sequence of work.

2. Selection


This type of algorithm allows to choose between the two conditions to be selected. The conditions to be selected must be declared at the beginning. One can use this type of algorithm is the selection of the maximum value between two numbers.

The first step to consider is to declare the type of data used. In this discussion we directly discuss how the algorithm to determine the maximum value.

Select figures will be compared. Then, save the figure. Choose a second number, and then save it. Then, compare these two numbers. If the first number is larger, then the two numbers do not need to be exchanged. If the first number is smaller, the two exchanged numbers. When the algorithm written in pseudo code <em> </ em> is as follows

A <- X
B <- Y

If A> B then
A <- X
B <- Y else
A <- Y
B <- X
end if

3. Repetition


This type of algorithm is necessary when you need to repeat a certain step in your problem solving method. This type is typically used to save a wet algorithm used. There are several procedures that can be used to use this method for whom the procedure, procedure repeat-until, and procedures while-do.

One example of a simple problem in solving this problem is to write the word "Hello" five times without having to write down the procedure of writing the word "Hello" is as much as five times.

By eliminating the variable declaration at the beginning, Pseudo code that can be written here is as follows:

for i <- 1 to 5 do
output ("Hello")
end for

Ant Algorithms and Computer

Ant Algorithms and Computer
Before discussing the ant algorithm, let it first investigated algorithm. Discuss the algorithm can not be separated from the problem of computing or mathematics. The term was first algorithm known from the writings of a mathematician named Al Khawaizmi Uzbekistan in the 12th century.

The algorithm refers to sequences or procedures are clear from the beginning to the end to solve a problem. There are many types of algorithms have been developed to date and to be able to classify it one way is to look at the methods used to design the algorithms.

Relationship Between Algorithm and Computer


At first, the computer is a tool that people use to computing course, tools to calculate quickly. But with the development of the times, the role of computers has dominated human life. Function is being developed to help overcome the problems of men.

Highly correlated with the computer because the computer algorithms are programs that use algorithms. Without the program, a computer is just a useless box. When people are required to make critical decisions that can save money, time and effort, the accuracy and speed of calculation will be provided by a computer program in which existing algorithms.

Ants Algorithm


Ant algorithm is an algorithm that is adopted from the behavior of ant colonies. Famous ant colonies and nests are regularly and can consist of thousands of ants per colony. These colonies form a single unit that is often referred to as a super organism.

When a colony of ants living, complex custom created from simple individual behavior, ie its uncanny ability to find the shortest path between two points. Ants are naturally able to find the distance or the shortest route from their nests to food sources.

For this reason then developed an algorithm that aims to solve the optimization problem in which the ants nest analogy as a starting point and a source of food as a destination point. This algorithm is effective and sufficiently accurate results of the calculation to determine the shortest path. However there are also disadvantages, ie the data to be processed, the accuracy rate will be decreased.

There are several versions of ant algorithms that can be applied to various problems. The first version was known as Ant System (AS) applied to the TSP. Then there are elitist Ant System (EAS), Rank-Based Ant System (ASrank), Min-Max Ant System (MMAS), Ant Colony System (ACS), Approximate nondeterministic Tree Search (ANTS), Hyper Cube Framework for ACO, and so on.

Advantages and Disadvantages of Joomla!

Advantages and Disadvantages of Joomla!
Quite a lot of the advantages that come with using Joomla! Among them:

1. Could add extensions package. That is, the application package that can be installed into the Joomla! To add to its function. If referenced in the portal Joomla! already more than 4300 more extensions that have been uploaded, although not all we can use for free.

Among them, could have a contact menu, create a blog on the website, can create a forum on the website, and so forth.

2. Joomla! has many community gathering place for website users of Joomla!. Through this community we could each question and answer, submit articles, find friends and communicate among members.

3. Because it has been specifically designed as a portal, the Joomla! so any suitable web.

4. The Joomla! also an open source product.

Behind the excess, Joomla! also has some Disadvantages of Joomla!. Among them:

1. If used for SEO, still not good enough. Although there are plug-ins for SEO.

2. If installing a video on the Joomla!, It still feels slow process.

3. Still difficult to collaborate with Blogspot and Wordpress as domains Joomla!

Downloading and Installing Joomla! 

Before installing Joomla, then the first is done in PHP, msyql, and Apache. Now all three can be simultaneously installed. How to download in www.apachefriends.org / en / xampp-windows.html.

If you've finished downloading, install. Way too easy to install, ie just click Next. If you want to apply, just click on the Start button and msyql appache that status to Running.

How To install Joomla!: 

1. Visit the Joomla! The www.Joomla. org

2. Click Download Joomla!

3. After that extract the file to a folder, then the folder you copy the program to a file in c :/ program files / xampp / htdocs /

4. Later, open your browser and type in http://localhost:80/Joomla (according to the name of the folder you wrote down earlier). And do not forget to activate the service and mysqlnya.

5. Having performed the pre-installation check, then you can just click the Next button that appears in the installation steps

6. Contents hostname with writing local host, username root, password is left blank, databasename filled in as you see fit, new click Next.

7. On the Configuration page, fill sitename to the name of your site, Your Emails with your email, Admin Password with your password, the Admin Password Confirm re-type your password earlier. Then choose the option Install Default Sample Data, and click the Install button. Finally, click Next

8. If you install Joomla! has been completed, then you have to delete the folder c :/ program files / XAMPP / htdocs / Joomla (the folder that you created earlier). Now, have completed the process of installing Joomla!

As a Joomla developer focuses on progress of software platform, the newer version will come out with added features. I have gone through the process of upgrading from several versions, including Joomla 1.5.6, Joomla 1.5.7 and now the latest version of Joomla 2.