如何在 Java 中添加方法描述?我使用 NetBeans IDE。
最佳答案
您可以使用/** 注释 */来使用 javadocs
对于一个方法基本上你可以有
/**
The Desciption of the method to explain what the method does
@param the parameters used by the method
@return the value returned by the method
@throws what kind of exception does this method throw
*/
您可以使用此链接获得更多帮助 http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#descriptions
关于java - 如何向方法或类添加描述,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15520142/