Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

line continuation in java

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
can some one tell me the syntax for line continuation charatcer to be used while defining a String variable.
I don't want to use + here for appending.The string shud just continue to the next line.
 
you have to use the + sign as far as I am aware. This is also the continuation symbol.

e.g.

System.out.println("this is a " +
"string");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top