import java.util.*;
import java.lang.Math;
public class test
{
private static ArrayList<float[]> af;
public test()
{
      af = new ArrayList<float[]>();
}
public void dd()
{
float[] f = new float[5];
for (int i = 0; i < 5; i++)
    {
     for (int k = 0; k < f.length; k++)
     {
     f[k] = (float)Math.random();
     System.out.print(f[k]+"  ");
     }
     System.out.println();
            af.add(i, f);
    }
for(int j = 0 ; j < 5; j ++)
    {
            float[]  pp = af.get(j);
             for (int u = 0; u < 5; u++)
                  System.out.print("pp["+u+"]= "+pp[u]+"   ");
             System.out.println();
                 
     }
}
public static void main(String[] args)
{
       new test().dd();
}
}
谁能告诉我,为什么两个输出的结果会不一样啊?谢谢啦。