At least until Generics comes to life in JDK 1.5...
- Original Message -
From: "Navneet Joneja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 9:39 PM
Subject: RE: newbie question : List vs. ArrayList vs. []
> Speaking as a webservic
that
easy to work with.
- Navneet
-Original Message-
From: Rumpa Giri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 4:09 PM
To: '[EMAIL PROTECTED]'
Subject: newbie question : List vs. ArrayList vs. []
1) public RegInfo[] getList1(RegInfo[] regInfos) {
1) public RegInfo[] getList1(RegInfo[] regInfos) {
return regInfos;
}
2) public ArrayList getList2(ArrayList infos){
return infos;
}
3) public List getList3(List infos){
return infos;
}
Trying
, October 21, 2003 3:09 PM
> To: '[EMAIL PROTECTED]'
> Subject: newbie question : List vs. ArrayList vs.
> []
>
> 1)public RegInfo[] getList1(RegInfo[] regInfos) {
> return regInfos;
> }
>
> 2)public ArrayList getList2(