[Related learning recommendations:java basic tutorial]
This article mainly introduces examples of quick generation interface methods for idea implementation classes, and shares them with everyone. The details are as follows:
Interface class
Implementation class
After we implement the interface, unlike eclipse, when you put the mouse on it, you will be prompted to generate the interface method
Position the mouse behind the UserService class, shortcut key: Alt Enter;
Select Implement methods.
Select and click OK to automatically generate.
There is another method, place the mouse on the name of the interface and press the Alt Enter key, the following page will appear:
Mouse left Key click: Implement interface to enter the interface of creating the name of the implementation class and specifying the package in which it is located
Click OK to generate the implementation The class will pop up the interface method implementation box
Recommended related pictures and texts:java introductory tutorial
The above is the detailed content of Java idea implements classes to quickly generate interface methods. For more information, please follow other related articles on the PHP Chinese website!