«« Next » « Previous
«« Next » « Previous

Link Details

Give a little, get a lot! Login and vote now.
Link 63559 thumbnail

By kirillcool
via jroller.com
Published: Jan 28 2008 / 13:44

One of the most common features in other programming languages is the multi-line String literal. Would it be possible to add this to Java?
  • 16
  • 2
  • 1569
  • 578

Comments

Add your comment
User 184684 avatar

kdavies replied ago:

0 votes Vote down Vote up Reply

I think this would be awesome, it is such a pain that you have to either do concatenation with + or read it from a total separate file. There doesn't need to be any special syntax. Other languages have allowed multi line strings for ages with no problem and I have always thought it a little bit silly that java wouldn't let you do it.

User 241464 avatar

Dmitriy Setrakyan replied ago:

0 votes Vote down Vote up Reply

Is it really worth the effort? Typing "mystring" + "otherstring" is not that hard.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.