各位大虾:
    小弟有一事不明,请大虾指点.JAVA不是没有动态数组的吗
  比如写法1肯定不行
    File f = new File(str);
    long l = f.length();
    byte[] b = new byte[l];
    FileInputStream fin = new FileInputStream(new File(str));
    FileOutputStream fout = new FileOutputStearm(str1);
    int num = fin.read(b);
    fout.write(b);
  可是写法2就可以,(写法2不是违背了JAVA有动态数组的规定吗)
  FileInputStream fin = new FileInputStream(new File(str));
    FileOutputStream fout = new FileOutputStearm(str1);
    byte[] b = new byte[fin.available()];
    fin.read(b);
    fout.write(b);