本文介绍了不区分大小写的Arraylist.indexof搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个字符串值的arraylist。我想搜索arraylist
来查找特定字符串的索引,我希望搜索是
不区分大小写。
dim al as new arraylist
al.add(one)
al.add(" two")
>
dim x as integer = al.indexof(" ONE")我想找到这个匹配
并返回0
有没有办法让这种情况发生?
John
解决方案
I have an arraylist of string values. I would like to search the arraylist
to find the index of a particular string and I would like the search to be
case insensitive.
dim al as new arraylist
al.add("one")
al.add("two")
dim x as integer = al.indexof("ONE") I would like this to find the match
and return 0
Is there a way to make this happen?
John
解决方案
这篇关于不区分大小写的Arraylist.indexof搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!