【Java开源代码栏目提醒】:网学会员Java开源代码为您提供ConCat1.java参考,解决您在ConCat1.java学习中工作中的难题,参考学习。
package chapter8;
public class ConCat1 {
public static void main(String[] args) {
String longStr = "This could have been "
+ "a very long line that would have "
+ "wrapped around. But string concatenation "
+ "prevents this.";
System.out.println("the string is " + longStr);
}
}