File a=new File ("c:\\")
if(a.isdirectory)
{
File f[]=a.listFiles();
for (int i=0;i<f.length;i++)
{ System.out.println("名字是"f[i].getname);
}
}
File a=new File ("c:\\")
if(a.isdirectory)
{
File f[]=a.listFiles();
for (int i=0;i<f.length;i++)
{ System.out.println("名字是"f[i].getname);
}
}