int[] arr=new int[10];
for(int x=0;x<arr.length;x++){
int num=(int)(Math.random()*10);
arr[x]=num;
}System.out.print(Arrays.toString(arr));
for(int x=0;x<arr.length;x++){
int num=(int)(Math.random()*10);
arr[x]=num;
}System.out.print(Arrays.toString(arr));
2016-04-21
for(int x=str.length();x>0;x-=3){
if(x!=str.lenth()){
str.insert(x,",");
}
}
if(x!=str.lenth()){
str.insert(x,",");
}
}
2016-04-21
基本通过,但代码很繁琐,欢迎测试指出错误http://www.imooc.com/opus/resource?opus_id=2919
2016-04-21
我写的代码,请多指教http://www.imooc.com/article/6817
2016-04-21