Before Beginning

Programming is being a very important and useful thing in whole our life, So it's important to understand how to program.

There is a very important concepts we must know before beginning so, Professor: Mehran Sahami introduce a useful lectures in Programming Methodology
from Stanford University under title CS 106A.

I will let you with links:

Videos in playlist in you tube:


Lectures in slides and PDF and software which will used :-


Pranav Mistry at TED; The Sixth Sense - part 1

Steps for Creating Java Application

All applications programs are written and compiled in the following manner:- 


  1. start any text editor (For ex: notepad…… but i prefer dreamWeaver or NetBeans IDE to write the code


  2. Write the building block of code for class as shown in the next considering the class Untitled-1 copy


  3. Write the code in side the main method (function) block as illustrated before.


  4. [For NotePad] compile the Java file using the commend JAVAC as follow:-




    • Run the DOS environment form MS-DOS prompt command from programs submenu from the start menu

Let's Start: Creating Java Appliction

Java has three applictions and that are:

  • Console Applictions
  • Windows Applictions
  • Applet Applections
All aplictions are created by Java and interpreted using Java Virtual Machine is called class so the firat step is to create a class, this class contains the code to be run which is divided into functions called methods (this will be illustrated more later)
The main syntax to the class as follow:

Class Class_name
{
           The building block for the class
} 
//the method (first function to run when runnung the appliction) is called main metod when running the appliction runss is start running from it has the following syntax:
public static void main (String[] args)
{
                       the building block for the method(function)
} 
So to build an appliction the structure block for starting the class is as follow:
Class class_name
{
public static void main(String[] args)
   {
      //the building block for the method (funtion) code written here
    }
}

Break