Listing 20.7, DirectorySize.java, gives a recursive method for finding a directory size. Rewrite this method without using

Question:

Listing 20.7, DirectorySize.java, gives a recursive method for finding a directory size. Rewrite this method without using recursion. Your program should use a queue to store the subdirectories under a directory. The algorithm can be described as follows:


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: