Why doesn't Java support multi-line strings?

David says Reinstate Monica picture David says Reinstate Monica · Mar 28, 2014 · Viewed 31.3k times · Source

Why doesn't Java support multi-line strings? I know they dont, but I dont know why. Is there a good reason? Several other languages have this capability, even older ones, so why doesnt Java? As far as I know (not very far) it shouldnt be too had to add this functionality to your lexers/compilers.

Edit: For clarification, I dont mean a string with a newline character in it. I mean something like this:

String s = "Hello
            World";

Edit2: I dont know why people thought I was asking for opinions, I most certainly am not. I specifically asked for good reasons. I suppose I need to explicitly say based on facts as well?

Answer