标签:int ati ted i++ rgs 经典的 new dex auto
public class Test21 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int sum = 0;
int[] array = new int[sum];
int index=0;
for (int i = 1; i < 100; i++) {
if (i % 3 == 0) {
array[index]=i;
index++;
}
System.out.println(index);
}
}
}
Java开发中经典的小实例-(100能被3整除的数打印出来)
标签:int ati ted i++ rgs 经典的 new dex auto
原文地址:http://www.cnblogs.com/L-zhihua/p/5988429.html