package Projetos;
public class MetodosString
{
static public void main(String[] args)
{
String palavra = "Alô Mundo";
int numero = 0;
/**Cannot find symbol
Symbol: method length()
Location: variable palavra of type String */
numero = palavra.lenght(); //Linha que acusa o erro cannot find symbol
System.out.println(numero);
}
}