Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can do it through arrayList but is it possible with string array,want to know?And if possible then plz tell me.
Posted
Comments
Sm.Abdullah 22-Feb-13 8:25am    
Use the built in System.Collections.Generic.List<t> class. If you want to delete elements don't make your life harder than it has to be. cause array do not have built in such type of function.Arrays are a fixed size data
structure.

1 solution

Arrays do not have built in deletion/removal functions. If you absolutely *have* to have an Array then there are several ways you could achieve the same effect by iterating through the array - but that is a truly awful route to take. Stick with your arrayList or one of the other collection types
 
Share this answer
 
Comments
boogac 22-Feb-13 10:11am    
especially when you have a great big big array :( 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900