public class shuzu {
public void shuzu1(int[]arr) {
Scanner sc=new Scanner(System.in);
for(int i = 0;i<arr.length;i++) {
System.out.println((i+1)+"个数");
arr[i+1]=sc.nextInt();
for(int n:arr) {
System.out.println(arr);
}
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
shuzu a=new shuzu();
int[]arr2 = a.shuzu1(int[]arr);
}
}
相关分类