如标题中所述,我有此代码
String a = flett("AM ","L","GEDS","ORATKRR","","R TRTE","IO","TGAUU");
public static String flett(String... s){
StringBuilder merge = new StringBuilder();
for (int i = 0; i < s.length; i++) {
merge.append(s.charAt(i));
}
return merge;
}
chartAt(i)出现错误? 例如,如何调用数组s中的每个字符并将其保存到合并中,或者如何调用特定字符(例如每个字符中的第一个字符)并将它们保存到合并中?