I dont know 'pendantic' so I would suggest System.arrayCopy as in assuming Object aobject[];
//you can use arrayCopy as in System.arrayCopy(list,0,aobject,0,list.size(); //later on cast as Object String str = (String)aobject[0]; (Sorry for being pedantic...) M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents ----- Original Message ----- From: "Ed Griebel" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Friday, November 10, 2006 2:35 PM Subject: Re: object[] to string[] > Maybe I'm just being pendantic, but this isn't really related to Struts at > all. > > java.util.Arrays and java.util.Collections provide a lot of methods to > transform between arrays and collections. You will find your answer > after some reading and some experimentation. > > On 11/10/06, temp temp <[EMAIL PROTECTED]> wrote: >> I want contents of java.util.list as string array >> >> Object aObject[]= list.toArray(); >> How can I cast this to string []? >> Thanks & Regards >> Miro >> >> >> >> --------------------------------- >> Everyone is raving about the all-new Yahoo! Mail beta. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >