如何串联Java中的字符串?
发布于 2021-01-29 20:09:49
在strKeyword
将根据循环被重复。如何将结果另存为新字符串。例如,如果工作“ hello”重复了两次,我现在将如何创建“
hellohello”作为一个全新的字符串。
for (int l = 0; l < newKeywordLength; l++) {
System.out.print(strKeyword);
}
关注者
0
被浏览
63
1 个回答