E
Esmond Pitt
Arne said:The while loop is tha standard way of writing that code
in Java (actually in C# too).
It depends on what you mean by 'standard'. That's the way I write it
too, but I wouldn't let any 'standard', or even any common practice
which is all that you seem to mean by the word, get in the way of
limiting the scope of a variable if I considered that to be more
important in a particular situation.