Java lesson One, first knowledge of Java

Source: Internet
Author: User

1. Procedures

What is a program: a collection of ordered instructions written to allow a computer to perform certain operations or solve a problem.

2.Java Platform Technology

1) Java SE Standard Edition

2) Java EE Enterprise Edition

3) Java ME Mobile

3. Steps to develop Java programs

1) Writing the source program

2) compiling the source program

3) Run

4. Configuring the JDK environment variables

1) in the system variable--"Create a variable

Variable name: java_home

Variable value: Is your installation JDK path

2) Find the variable of path in the system variable

Variable name: Unchanged

Variable value: Front:%java_home%\bin;

3) Create a variable in the system variable--"

Variable name: classpath

Variable value:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;

5. Program framework, output instructions

public class class Name {

public static void M,ain (string[] args) {

SYSTEM.OUT.PRINTLN ("Your input content"); Input content

}

}

6. Escape Attachment (note: Always put in double quotes)

1) \ n line break

2) \ t tab (empty 8 cells)

7. Creating Java program steps with development tools

1) Create a Java project

2) Writing the source program

3) Compiling

4) Run



Java lesson One, first knowledge of Java

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.