java check for string length

Java
String data = "Hello, World!";
int nameLength = data.length(); // 13
Source

Also in Java: