Eclipse create Java Class---Eclipse tutorial lesson 10th

Source: Internet
Author: User
Open the New Java Class wizard

You can use the New Java Class Wizard to create Java classes, and you can open the Java Class Wizard in the following ways:

  • Click on the "File" menu and select New > Class
  • Right-click in the Package Explorer window and select New > Class
  • Click the drop-down button () of the class and select ()

Before you open the Create Java Class Wizard, it is a good idea to choose the package name that the Java class belongs to, so that the package name field is automatically populated when you create the Java class.

Using the New Java Class wizard

In the popup window of the Java Class Wizard you can do the following:

  • Confirm that the folder name (Source folder) and package name are correct
  • Enter the class name
  • Choose a different decoration class
  • Enter the name of the superclass (superclass) or click the Browse button to select a class that already exists
  • Click the Add button to select the interface that the class implements
  • In the check box, you can select how the method is created and whether to automatically generate comments

  • Click Finish button
To view new Java classes

In the package Explorer view we can see the new class and we can modify the code from the Java editor on the right.

Eclipse create Java Class---Eclipse tutorial lesson 10th

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.