import java.util.Scanner;
public class Main {
public Main()
{
Scanner sc
= new Scanner
(System.
in); if (checkLetters(nome))
{
System.
out.
println("Fazer algo aqui..."); }
else
{
System.
out.
println("Neste campo não é permitido números. Tente Novamente."); }
}
public boolean checkLetters
(String str
) {
return str.matches("[a-zA-Z]+");
}
public static void main
(String[] args
) { new Main();
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKcHVibGljIGNsYXNzIE1haW4gewogICAgCiAgICBwdWJsaWMgTWFpbigpCiAgICB7CiAgICAJU2Nhbm5lciBzYyA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICAJU3RyaW5nIG5vbWUgPSAiZm9vQmFyMTIzNDU2IjsKICAgIAlpZiAoY2hlY2tMZXR0ZXJzKG5vbWUpKQogICAgCXsKICAgIAkJU3lzdGVtLm91dC5wcmludGxuKCJGYXplciBhbGdvIGFxdWkuLi4iKTsKICAgIAl9CiAgICAJZWxzZQogICAgCXsKICAgIAkJU3lzdGVtLm91dC5wcmludGxuKCJOZXN0ZSBjYW1wbyBuw6NvIMOpIHBlcm1pdGlkbyBuw7ptZXJvcy4gVGVudGUgTm92YW1lbnRlLiIpOwogICAgCX0KICAgIH0KICAgIAogICAgcHVibGljIGJvb2xlYW4gY2hlY2tMZXR0ZXJzKFN0cmluZyBzdHIpIAogICAgewogICAgCXJldHVybiBzdHIubWF0Y2hlcygiW2EtekEtWl0rIik7CiAgICB9CiAgICAKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBuZXcgTWFpbigpOwogICAgfQp9