代码如下:
public class Final {
int x;
Final(int i)
{
x = i;
}
protected void finalize()
{
System.out.println("Final of the class!" + this.x);
}
public void generate(int count)
{
Final final = new Final(count);
}
}
看看Final final = new Final(count);
我从这一行得到的错误。( not a statement ; excepted
)。我们不能定义包含该变量的类的变量吗?