Program to List all drives of System

FileDemo7.java

import java.io.*; class FileDemo1{ public static void main(String ar[])throws IOException { File[] drives=File.listRoots(); for(File f:drives){ System.out.println(f); } System.out.println(""+new java.util.Date()); } }

No comments:

Popular Posts