如何从单维字符串数组中删除特定索引? [英] How to delete a specifice index from single dimension string array?
本文介绍了如何从单维字符串数组中删除特定索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以通过arrayList来实现,但是可以使用字符串数组,想知道吗?如果可能的话,请告诉我。
I can do it through arrayList but is it possible with string array,want to know?And if possible then plz tell me.
推荐答案
数组没有内置删除/删除功能。如果你绝对*拥有一个数组,那么有几种方法可以通过遍历数组来达到相同的效果 - 但这是一个真正的糟糕的路由。坚持使用您的arrayList或其他一些集合类型
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
这篇关于如何从单维字符串数组中删除特定索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文