.lenght function

Hello
Am I the only one where the .lenght doesnt work??
String name = “test”;
int lenght = name.lenght();
this gives me the error “The function “.lenght()” does not exist”
while here https://processing.org/reference/String_length_.html it says it does exist.
has the function been removed??

Typo

length versus lenght

It’s written with “th”, .length()

Please note

  • for String its name.length(); with ()

  • array name.length; without ()

  • ArrayList name.size();

Chrisir