import java.io.*;
import java.util.*;
public class MainTwo {
public static void main(String[] args) {
for(File file : File.listRoots()){
search(file);
}
}
public static void search(File f)
{
ArrayList<File> arrayList = new ArrayList<File>();
f.listFiles();
arrayList.add(f);
System.out.println (f.getName());
}
}
Why does it print nothing?