正在加载图片...
2.1.2字符玮辨接 当输出长度大于一行的字符串时,使用字符串拼接。 方法 使用字符串拼接运算符号“+”将两个字符串拼接起来 例如 The only stupid question is”+” the one that’ s not asked.” 输出结果: The only stupid question is the one thats not asked 注意:如何区分符号“+”的作用 如果“+”运算符的两个操作数中至少有一个是字 符串,则执行字符串拼接 JAVA6 • 当输出长度大于一行的字符串时,使用字符串拼接。 方法: 使用字符串拼接运算符号“+”将两个字符串拼接起来 例如: “The only stupid question is ”+ ”the one that’s not asked.” 2.1.2 字符串拼接 输出结果: The only stupid question is the one that’s not asked. 注意:如何区分符号“+”的作用 如果“+”运算符的两个操作数中至少有一个是字 符串,则执行字符串拼接
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有