In article <hr********************@adelphia.com>,
do*@leckieinc.com
writes...
Hi,
I've searched all my Java books ans newsgroup archives and found nothing.
Once I thought that I saw a character at the end of a line allowed a String
literal to span multiple lines.
I have some XSLT code that I want to write out with one println( )
statement. The XSLT code is several lines long.
Does anyone remember a String literal line continuation character?
Too much VB can affect you that way ;-)
"VB is a popular Australian beer " & _
"as well as Visual Basic)
AFAIK there is no such thing in Java.
String answer = "Java statements continue " +
"from line\nto line\n" +
"until they are terminated with a semicolon, " +
"so there is no need for any special construct";
System.out.println(answer);
--
DM
personal opinion only