0
是否正確的java文檔方法文檔? 我的部分代碼如下。沒有參數但有回報。只有局部變量。是否正確的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;
}