Java Tutorial for Beginners.

satheesh

New Member
Messages
883
Reaction score
0
Points
0
Java Tutorial for Beginners.​

Download a java from in this link http://java.sun.com/javase/downloads/index.jsp.

1.Install it.
2.Click Start->Run->cmd.
3.Open the bin directory with in the Java Example:cd C:\Java\jdk1.5.0_10\bin.
4.Type "edit Simple.java" and press enter to create a new Java file in the bin directory.
5.Copy the Code below and Paste it.

Code:
class Simple {
    public static void main(String[] args) {
        System.out.println("***************************");
        System.out.println("* My First Simple Program *");
        System.out.println("*          By             *");
        System.out.println("*   Satheesh kumar        *");
        System.out.println("***************************");
    }
    
}
}
6.save it.
7.Type "javac Simple.java" and press enter to Compile the program.
8.Type "java Simple" and press enter to Run the program.

Code Explanation:

Code:
class Simple { 
    public static void main(String[] args) { [B]->Main Function like C++ Main Function[/B]
        System.out.println("***************************"); [B]->To Print the Message.[/B]
        System.out.println("* My First Simple Program *");
        System.out.println("*          By             *");
        System.out.println("*   Satheesh kumar        *");
        System.out.println("***************************");
    }
    
}
}

Good Luck.
 
Top