So far, that method has always been run, but it is legal to declare variables in any method.
迄今为止,方法一直都是run,不过在任何方法中声明变量均是合法的。
EDIT: One of the requirements of the project is to NOT cast an object to t in any method.
编辑:项目的需求之一是不把一个对象t在任何方法。
Consider using exception handling in any method that USES operators that may generate an exception, or that calls into or accesses other procedures that may generate an exception.
当方法使用可能产生例外状况的运算子时,或是方法呼叫或存取其他可能产生例外状况的程序时,请考虑使用例外处理。
应用推荐