The strKeyword
将根据循环重复进行。如何将结果保存为新字符串。例如,如果工作“hello”重复两次,我现在如何将“hellohello”创建为全新的字符串。
for (int l = 0; l < newKeywordLength; l++) {
System.out.print(strKeyword);
}
string newWord="";
for (int l=0; l<newKeywordLength; l++){
newWord+=strKeyword;
}
System.out.print(newWord);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)