【发布时间】:2013-06-28 17:21:20
【问题描述】:
C++ 的“std::string::find_first_of”是否有任何 Java 等价物?
string string1( "This is a test string!");
int location = string1.find_first_of( "aeiou" );
//location is now "2" (the position of "i")
实现相同功能的最简单方法是什么?
编辑:建议的解决方案也必须适用于 Android。
【问题讨论】: