import java.io.*;
class Test
{
public static void main(String[] args) throws IOException
{
File file=new File("c:");
String [] strs=file.list();
for(String str:strs)
{
System.out.println(str);
}
}
}
回去试一下就知道了
import java.io.*;
class Test
{
public static void main(String[] args) throws IOException
{
File file=new File("c:");
String [] strs=file.list();
for(String str:strs)
{
System.out.println(str);
}
}
}
回去试一下就知道了