String str = "admin"; boolean b = str.startsWith("a");//true 更多关于字符串的处理方法请点击:StringUtils常用方法汇总 感谢您的阅读。如果感觉文章对您有用,麻烦您动动手指点个赞,以资鼓励。谢谢!