```
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<Integer> aList=new ArrayList<Integer>();
for (int i = 0; i < 10; i++) {
//int -->自动转换为 Integer
aList.add(i);
}
}
```
```
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<Integer> aList=new ArrayList<Integer>();
for (int i = 0; i < 10; i++) {
//int -->自动转换为 Integer
aList.add(i);
}
}
```
本文标题:2019-02-03
本文链接:https://www.haomeiwen.com/subject/paoesqtx.html
网友评论