Lista, tenho esse método abaixo e na linha
if () o eclipse sinaliza o alert:p.matches("[a-zA-Z]+", nome)
The static matches(String, charSequence) from the type Pattern shoud be accessed in a static way.
O que significa isso e como se resolve?
Muito obgridgado,
Marques
private String validaForm(){
String msg = "";
String nome = "Alberto" ;
Pattern p = Pattern.compile("[a-zA-Z]+");
if (p.matches("[a-zA-Z]+", nome)) {
System.out.println("digite apenas numero");
}
return msg;
}