In C #, you can use string literals so you don't have to include the + sign to combine strings on multiple lines. For example:
var fooStr = @"This is a foo string. It will have a corresponding bar sibling string";
In Java, the same code will be written as:
String fooStr = "This is a foo string." + "It will have a corresponding bar sibling string";
I know that in Java there is no equivalent to verbatim strings, and you should avoid strings yourself. But is there an equivalent to this specific functionality? Or is there a library that helps achieve this?
java
chaudharyp
source share