我需要更换:
myVariable = "sample string is long " +
"so I put rest of it in 2nd line." +
" And sometimes in 3rd and so on";
和:
myVariable = "sample string is long so I put rest of it in 2nd line. And sometimes in 3rd and so on";
附加问题:如何合并像上面这样的实体,我在连接链中有其他变量?
myVar = "The number of the beast is " + numberOfTheBeast + " !!! So I said";
我想做的是将其更改为带有参数的单个字符串。