如何在Netbeans中生成这些函数头注释?是否提供模板以及参数名称的任何快捷方式?
/**
* Performs the Decrease Key operation
* @param index Index of the node in the RefArray whose key is to be decreased
* @param amount Amount by which key is to be reduced
*/
public void decreaseKey(int index, int amount)
{
}
答案 0 :(得分:24)
在方法,构造函数或字段的上方,键入/**
,然后立即按Enter键。 Netbeans应为javadoc生成模板。