它是java方法文档的正确文档吗?我的部分代码如下。没有参数但有返回值。只有局部变量。
/**
*This method prompts user to enter the how many numbers user is going to test.
*
*@return The validated value based on parameter.
*/
public static int getNum()
{
int t;
Scanner input=new Scanner(System.in);
System.out.print("How many numbers would you like to test? ");
t=input.nextInt();
while (validateNum(t))
{
System.out.print("How many numbers would you like to test? ");
t=input.nextInt();
}
return t;
}