Dave H
Posts: 16
Nickname: slebtack
Registered: Apr, 2007
|
|
Re: Size of files in Java
|
Posted: Apr 7, 2008 8:05 AM
|
|
Oh, you’re being taught recursion; marvellous.
Your diskUsage() doesn’t find the size of any files (hint: java.io.File has a length() method — which type does it return?); doesn’t keep a running total of disk space used; doesn’t attempt to return any answer to its caller. You need to fix all these things.
Oh, and next time you post code here, post it in java tags; that way it will display properly. http://www.artima.com/forums/howtopost.html
|
|