How to Use Eclispe to view APIs and eclispe to view APIs
When we use eclispe, we will know that when we place the cursor over the specified method, a prompt will pop up. Don't ignore this prompt. This prompt is the description in the source code that includes the function parameter usage.
Most of the time, when we encounter a method that we don't know, the first step will be to check the api or Google, which is actually found to be a waste of time. If you are better at English, you can simply read it. clearly written
If you are not good at English, you can use a practical tool to automatically display Chinese characters.
What do we do on the official website? Sometimes, when the team is developing, it is difficult to ask our colleagues, therefore, we can customize our own APIs. When Each programmer writes a method, we will comment on the method above the method as follows:
/**
* Method description
* @ Param
* @ Param B
* Return
*/
Public void test (int a, int B ){
}
In this way, when we use this method elsewhere, we can directly check whether it is very convenient for our friends who have tried it, the second feature is to generate an api, that is, the doc document, when we finish writing the program. At this time, we will use it.