import java.util.Arrays;
public class a
{public static void main(String[] args)
{
int num=8;
a hello=new a();
int shuZu[]=hello.score(num);
System.out.println(Arrays.toString(shuZu));
}
public int[] score(int num)
{
int shuZu[]=new int[num];
for(int i=0;i<shuZu.length;i++)
{
shuZu[i]=(int) Math.random()*100;
}
return shuZu;
}
}
慕的地6079101
大佬们,为什么我一次随机出的数组,输出后数组元素为什么不同?
求大神告知为什么set里添加list中的元素用append 不用add ?
出数组中有数组类型的元素
更新数组元素的值是什么意思
相关分类