Can anyone clarify this for me.
package test;
import java.io.File;
public class Main {
public long[] getFileSize()
{
File file = new File("D:\\new");
String fileSize[] = file.list();
long TotalSize[] = null;
for(int i=0; i<fileSize.length;i++)
{
TotalSize[i] = file.getTotalSpace();
}
return TotalSize;
}
public static void main(String[] args) {
Main app = new Main();
app.getFileSize();
}
}


Sign In
Create Account


Back to top









