在 Java 方法之前,我们有类似的东西:
/**
* Takes a number and returns its square root.
* @param x The value to square.
* @return The square root of the given number.
*/
public float getSqrt(float x) {
...
}
这是否有名称(如 Python 中的文档字符串)?
在 Java 方法之前,我们有类似的东西:
/**
* Takes a number and returns its square root.
* @param x The value to square.
* @return The square root of the given number.
*/
public float getSqrt(float x) {
...
}
这是否有名称(如 Python 中的文档字符串)?