On Fri, 24 Oct 2003 22:14:05 +1300, "Simon Righarts"
<> wrote or quoted :
>You won't notice any real difference, but #1 would be faster, since String
>concatentation is a lot faster thn an extra I/O call.
Not necessarily. The string i/o could be just an arraycopy with a
buffered file. The concatenation allocates a String buffer, copies the
two strings, and then converts the StringBuffer into a String.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See
http://mindprod.com/jgloss/jgloss.html for The Java Glossary.