>>88
以下のようにするとメソッドaaaでtorに入れようと
するとtorがnullで落ちてしまいます。

public class Test{
public int bufnum;
public int[] buf;
public Test(int num)
{
bufnum = num;
int[] tor = new int[num];
}
public void aaa(){
tor[0] = 1;
}
}