Java?ж????????????????????
???????????? ???????[ 2012/10/26 9:53:53 ] ????????
????Java?б?????????????????????????
????????????"????"???????????????????????????????????????????
???????A??
<SPAN style="FONT-SIZE: 18px">List<Person> perList = new ArrayList<Person>();
for (int i = 0; i < idList.length(); i++) {
Person person = new Person();
//????????
person.setId(i+1);
person.setName("Lin");
person.setAge(10);
//????List??
perList.add(person);
}</SPAN>
???????B??
<SPAN style="FONT-SIZE: 18px">List<Person> perList = new ArrayList<Person>();
Person person = new Person();
for (int i = 0; i < idList.length(); i++) {
//????????
person.setId(i+1);
person.setName("Lin");
person.setAge(10);
//????List??
perList.add(person);
}</SPAN>
???????????????δ????????????????????
???????A??person??????for????д???????????????????for????????for?????????????new??idList??length??????person???????????person????perList?С?????perList????idList??length????????id????1~n??person????????????????1??n??
???????????B?У?person??????for????????????B??????perList???idList??length??????id?n??person??
??????????????
????java?ж????????Object????????????????????????????person??setId??1???????????perList?У???????????????????person????person??setId??2?????????person??id????2?????????perList?С????????perList?е?person???????????person??????????person??????????????????????"?"??????????????????????????perList?з???idList??length??????id?n??person??????????????????n?Σ?
?????????Java?б???????δ????????????????????????????????????????????
????Java?У?????????????????????????????????????"???"????????????????????????????????????????????????????????????????????????????????????????????????????????????"??????"???????????????????????????????????????????????????????????"???ù??"??????п????????????????????????????????
??????????
????JAVA?л?????????????????????д??????????????????????????д??????λ????е??????????????????????????????????????????????????????????????????????????????????????????????????????Ч??????????????????????????????Ч??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????
?????????????????????????????????????????????????????????????????????????п?????????????????????ν??????????????????????????????????硣
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11