【发布时间】:2011-09-05 15:51:51
【问题描述】:
我正在尝试在 Eclipse 中粘贴一个很长的字符串,例如:
String str = "verrrrrrrrry long string that hass 9000 characters";
I want it to appear as
String str = "verrrrrrrrry long"+
"string that hass "+
"9000 characters";
我尝试了这里提到的选项:Paste a multi-line Java String in Eclipse,但这给了我在字符串中插入的一堆我不想要的新行。
我目前得到的是一个长字符串,它只是在同一行上环绕自身。
任何指针?
【问题讨论】:
-
wraps over itself on the same line是什么意思? -
他的意思是它的 1 个超长 ling。 (我认为)
-
@asgs 我的意思是,字符串在该行通过编辑器的末尾并从头开始重写,覆盖[乱码]字符串的开头