try {
File[] roots=File.listRoots();
System.out.println("Available drivers");
for(int i=0;i<roots.length;i++){
System.out.println(roots[i].getAbsolutePath()+"");
System.out.println("");
}
File path=new File(".");
String[] list;
list=path.list();
System.out.println("Files in current dir:");
for(int i=0;i<list.length;i++){
System.out.println(list[i]);
}
} catch (Exception e) {
e.printStackTrace();
}