我有这段小代码
String[] words = {"{apf","hum_","dkoe","12f"};
for(String s:words)
{
if(s.matches("[a-z]"))
{
System.out.println(s);
}
}
Run Code Online (Sandbox Code Playgroud)
打算打印
dkoe
Run Code Online (Sandbox Code Playgroud)
但它什么都没打印!!