Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
If I have a while loop declared the following way:
what happens if the file test.txt contains nothing in it (ie, taskNumber equals null? As far as I know, it should break from the loop and (in this case) return to the method that called it (since there is nothing after the loop). Yet, it doesn't. It ends the application completely. If test.txt does contain text, then everything continues as normal. Does anyone know what's going on? If you want, I can send you the full code. Hiran Replies:
|
Sponsored Links
|