|
-
Feb 25th, 2003, 10:43 AM
#1
Thread Starter
Member
Array index delete
Dear All
I have got array called MyArray()
MyArray(0)=A
MyArray(1)=B
MyArray(2)=""
MyArray(3)=C
MyArray(4)=""
...
...
MyArray(10)=W
I would like to delete the empty array index where "" exist
and update the array again
Many Thanks in advance for any Help
salih
-
Feb 25th, 2003, 11:20 AM
#2
Addicted Member
with a 'plain' array there is no one line solution to deleting/removing individual elements. If this is what you want to do then try some other structures from the Collections class, a list, arraylist or stack perhaps. cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|