Creation and editing of Java programs

Source: Internet
Author: User

Creation of 1.JAVA projects and command editing

Open the Java program, select the small triangle next to the Create button on the toolbar, select Create Java project in the drop-down menu, enter the project name in the dialog window that appears, and select the available resource bundle in the JRE using the execution environment. If the javase1.7 version is installed, select version 1.7 and click the Finish button to complete the creation of the Java project.

After the project is created, the project folder appears in the Package explorer on the left side of the window, where the SRC folder stores the source code and Java source files.

Choose the SRC folder right-click on the menu that appears to choose New Class (Class), name the newly created class in the dialog window, and select the public static void main check box in the stub column to get the function of the automatic prompt code.

After the class is created, the Code editing window automatically appears with a set of code

1. In the edit window input sysout, press and hold the ALT key on the keyboard and the left slash key, will enter the code quickly: System.out.println ();

2. Want to change the font size, in the window → preferences → general → color and text → text font to change the code font size.

If you want to run only a few paragraphs in a program, you can use breakpoints. A breakpoint marker appears when you double-click the blue bar to the left of the line number for each program.

Creation and editing of Java programs

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.