使用了未赋值的局部变量怎么回事

2025-05-03 09:09:55
推荐回答(1个)
回答(1):

你的数组没有初始化 int[] num;需要改成int[] num=new int[1000];这种格式(因为不清楚会有多少个数字,所以暂定1000) 同样后面的for (int i = 0; i