Add string to string array.

2000-05-30 Thread Liza J Alenchery
How can I create an array of strings and assign a new string to the array in a loop? String[] sArray ; for (int i = 0; i < 10;i++) { sArray[i] = "apple" ; } The code fragment above does not work. But this is what I need to do. Add strings to a string array at runtime. thanks in advance liza

Re: Add string to string array.

2000-05-30 Thread Sylvain St-Germain
Use the Vector object. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Liza J Alenchery > Sent: Tuesday, May 30, 2000 4:25 PM > To: [EMAIL PROTECTED] > Subject: Add string to strin

Re: Add string to string array.

2000-05-30 Thread Jim Bailey
t i = 0; i < sArray.length; i++ ) { sArray[ i ] = "apple"; } -Original Message- From: Liza J Alenchery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 30, 2000 4:25 PM To: [EMAIL PROTECTED] Subject: Add string to string array. How can I create an array of strings and assign a new s

Re: Add string to string array.

2000-05-30 Thread Arun Thomas
toArray(new String[0]); > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Liza J Alenchery > Sent: Tuesday, May 30, 2000 1:25 PM > To: [EMAIL PROTECTED] > Subject: Add string to str

Re: Add string to string array.

2000-05-30 Thread Vinod kumar
; > -Original Message- > > From: A mailing list about Java Server Pages > specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of > Liza J Alenchery > > Sent: Tuesday, May 30, 2000 1:25 PM > > To: [EMAIL PROTECTED] > > Subject: Add string