A simple Java applet in the early 2015.11.27

Source: Internet
Author: User

Today is the second day to come to the Han Enterprise, yesterday, mainly studied the Java configuration environment variable method: 1. Open My Computer--Properties--advanced--environment variables

2. New System variables Java_home and Classpath

Variable name: java_home
Variable value: D:\Java\jdk1.7.0_60_x64 (variable value must be a full English path, not Chinese)

Variable name: CLASSPATH
Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (full copy only)
3. Select the environment variable named "path" in the "System variables", double-click the variable, add the absolute path of the bin directory in the JDK installation path to the front of the value of the path variable, and delimit the semicolon with the half-width and the existing path.
Variable name: Path
Variable value:%java_home%\bin;%java_home%\jre\bin; (copy these exactly before the value of the original PATH variable)
This is the Java environment configuration, the configuration is completed directly after the eclipse, it will automatically complete the configuration of the Java environment

Today mainly speaks of:

Simple output program for 1.java. By practicing repeatedly, it is found that the order of public and static is interchangeable, string[] arg and String arg[] are indistinguishable, and arg and args are no different.

2. Change the path method: 1. Open cmd, enter the CD after space + paste the path you copied before enter. 2. Enter the path of the disk, such as "D" after enter, change the path successfully.

3. Write the program through Eclipse.

4. The pointer is a variable that holds the address, and when the pointer points to a variable, the pointer holds the address of the variable, and the pointer can be used to directly take the value of the variable, as long as the pointer is in front of * to take its truth (that is, the value of the variable pointed to).

Object-oriented is the decomposition of a problem transaction into individual objects, the purpose of which is not to complete a single step, but to describe the behavior of something in the whole process of solving the problem. For example Gobang , the whole Gobang can be divided into 1, black and white both sides, the behavior is exactly the same, 2, the Board system, responsible for drawing the screen, 3, the rule system, responsible for determining such as foul, winning and losing. The first type of object (Player object) is responsible for accepting user input and informing the second class object (Checkerboard Object) The change of the chess board, the Checkerboard object receives the change of the chess piece, it is responsible to show this change on the screen, and make use of the third kind of object (rule system) to decide the chess game.

4. Your own small program:

public class A{static public void Main (string[] arg) {System.out.println ("       1"); System.out.println ("      1 1"); System.out.println ("     1   1"); System.out.println ("    1=====1"); System.out.println ("   1       1"); System.out.println ("  1         1"); System.out.println ("1           1");}}

A simple Java applet in the early 2015.11.27

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.