我想知道我的样子,所有以A或B开头的名字,或者类似的例子,我有David Daniel Jose Alejandro,我只想要以A开头的名字,谁能告诉我。name =以A开头,现在清楚我需要什么了吗?
发布于 2015-05-08 01:31:16
我认为你正在寻找这个:
How to get first character of string?
基本上
if (yourstring.charAt(0) == 'A'){
*your desired code*
}https://stackoverflow.com/questions/30107923
复制相似问题