Title: RE: Java Question

You can't split a String literal on two lines. You have to do it like this:


String str =
" <H1 >Select User  </h1> <BR>\n- Select (or change) the users below.";


or


String str =
" <H1 >Select User  </h1> <BR>\n" +
"- Select (or change) the users below.";


Marko

-----Original Message-----
From: Parag Thakker [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 03, 2000 3:08 PM
To: [EMAIL PROTECTED]
Subject: Java Question


Hi

In Java how do we declare String on multiple line

say String str =
" <H1 >Select User  </h1> <BR>
- Select (or change) the users below.";


What character needs to be put in end
Basically i want to send HTML text on a page
is it possible to do without reformatting and
concating?

I would appreciate if anyone could let me know

Parag
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to