Eclipse Create Java Interface---Eclipse tutorial lesson 11th

Source: Internet
Author: User
To open the New Java Interface Wizard

The New Java Interface Wizard can create an additional Java interface. The way to open the wizard is:

  • Click on the File menu and choose New > Interface
  • Right-click in the Package Explorer window and select New > Interface
  • In the drop-down box button on the toolbar () select ()

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

Using the New Java Interface Wizard

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

  • Confirm that the folder name (Source folder) and package name are correct
  • Input Interface Name
  • Click the Add button and select the interface to which the interface will be inherited
  • Choose whether to generate comments automatically
  • Click Finish button

View the new Java interface

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

Eclipse Create Java Interface---Eclipse tutorial lesson 11th

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.