Forum: Java Jul 2nd, 2009 |
| Replies: 11 Views: 388 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: 388 |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 388 I think I may be a little confused, I thought I was doing that. |
Forum: Java Jul 1st, 2009 |
| Replies: 11 Views: 388 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: 388 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: 388 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: 388 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... |
Forum: Python May 3rd, 2007 |
| Replies: 3 Views: 1,158 Begin:
The <expression>s are evaluated sequentially from left to right, and the value of the last <expression> is returned. This expression type is used to sequence side effects such as input and... |
Forum: Python May 2nd, 2007 |
| Replies: 3 Views: 1,158 I was wondering if there is something in python similar to the begin expression in Scheme, and if not how would you write something in python to simulate it. |
Forum: Computer Science May 1st, 2007 |
| Replies: 2 Views: 1,021 |
Forum: Computer Science May 1st, 2007 |
| Replies: 2 Views: 1,021 How would you write a begin procedure in python that would be analogous to the scheme expression. |
Forum: Computer Science May 1st, 2007 |
| Replies: 1 Views: 1,133 How would you write your own begin expression, that would be analogous to the built in procedure in scheme? |