Forum: Java Jul 2nd, 2009 |
| Replies: 11 Views: 402 Actually that was only a quick fix. The real problem was that I forgot to account for the base case in the searchForFile() method (when the array "files" is null). Thanks again though. |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 402 |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 402 I think I may be a little confused, I thought I was doing that. |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 402 When the method searchForFile() is ran, it prints out that the file is found (if you created it), once this happens the method should terminate but it does not. I don't understand why the method... |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 402 I replaced the old line numbers with the actual line of code
Exception in thread "main" java.lang.NullPointerException
at Check.containsFile --> for (int i = 0; i < files.length; i++) {
at... |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 402 Exception in thread "main" java.lang.NullPointerException
at Check.containsFile(Check.java:70)
at Check.searchForFile(Check.java:55)
at Check.searchForFile(Check.java:61)
at... |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 402 I've created my own recursive file search. When the file is found it is printed that it is found, but the method searchForFile() does not terminate once the file is found, it continues to iterate and... |