Hello world Getting Started with Java applets

Source: Internet
Author: User

/**

Author: haha
Version: V1.0
This class is used to demonstrate Hello world.
*/
Class Demo//This is my first Java applet,//Very cool!
{
/*
The main function guarantees that the operation is independent.
It is the entrance to the program.
It will be called by the JVM.
*/
public static void Main (string[] args)
{
/*
System.out.println ("Hello java");//This is an output statement that can print the contents of the parentheses.
System.out.println ("Hello World");/?????
*/
System.out.println ("Hello java");
System.out.println ("Hello World");


}
}

--------------------------------------------------------------------------------------------------------------- ------

/*
Requirements: Define a Hello World applet.

Steps:
1, define a class with the class keyword. Code is written to the class.
2, in order to ensure that the independent operation. Define a main function in the class. Format public static void Main (string[] args)
3, save as a file with the extension java.
4. Compile the Java file in the DOS console using the Javac tool.
5, the generated class file is executed with the Java command.
*/

Class demo//defines a category.
{
The main function.
public static void Main (string[] args)
{
The output statement.
System.out.println ("Hello haha");
}
}

Hello world Getting Started with Java applets

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.