I want to ask, why
Code: Select all
File[] roots =File.listRoots();
for(File f:roots){
System.out.println(f);
}Code: Select all
Iterable<Path>proots = FileSystems.getDefault().getRootDirectories();
for(Path p:proots){
System.out.println(p);
}Moderators: Site Manager, fjwalraven
Code: Select all
File[] roots =File.listRoots();
for(File f:roots){
System.out.println(f);
}Code: Select all
Iterable<Path>proots = FileSystems.getDefault().getRootDirectories();
for(Path p:proots){
System.out.println(p);
}Users browsing this forum: Google Adsense [Bot] and 11 guests