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) { ->Main Function like C++ Main Function
        System.out.println("***************************"); ->To Print the Message.
        System.out.println("* My First Simple Program *");
        System.out.println("*          By             *");
        System.out.println("*   Satheesh kumar        *");
        System.out.println("***************************");
    }
    
}
}
Good Luck.