public static void main(String[] args) {
int[] arr = {1,2,3};
String s = "[";
for (int i = 0; i<arr.length; i++) {
if(i == ______) {
s = s + arr[i] + _____;
}else {
s = s + arr[i] + _____;
}
}
A、arr.length-1 “]” “,”
B、arr.length “]” “,”
C、arr.length “]” “,”
D、arr.length-1 “]” “, ”
|
|