int n = 20;
String [] s = new String[n];
for(int i = 0; i < n; i++){
s[i] = String.valueOf(i);
}
Java给字符串数组动态赋值
最新推荐文章于 2024-06-20 13:49:28 发布
int n = 20;
String [] s = new String[n];
for(int i = 0; i < n; i++){
s[i] = String.valueOf(i);
}