JavaCodeSome interfaces are often implemented, which is unique to Java code. To implement an interface, you need to implement the methods defined in this interface. If you decode the methods one by one, you need to remember the method name and so on. Even if you have content-assisted shortcut keys for help, it is very troublesome. Here is a small trick to quickly implement all methods defined by the interface in the current class, of course, they are all empty implementations. :-D
Step 1: first code out the interface to be implemented
Step 2: place the cursor on the row of the Declaration class and press Ctrl + 1 to see the prompt for implementing all methods.
Step 3: select to implement all methods. This class generates an empty Implementation of the method in the interface, and then implement it again as needed, which is more convenient.
PreviousArticle, Eclipse usage and skills 14: automatically generated todo NOTE 2:
Http://blog.csdn.net/ts1122/article/details/9009217
Next article, eclipse usage and tips 16: automatically add unimplemented Method 2:
Http://blog.csdn.net/ts1122/article/details/9116291