My issue
class TextLength {
public static void main(String args) {
String txt = “NumeroTres”;
int length = txt.length();
System.out.println("Number of characters in txt: " + length);
}
}
My code
class TextLength {
public static void main(String[] args) {
String txt = "NumeroTres";
int length = txt.length();
System.out.println("Number of characters in txt: " + length);
}
}
Learning course: Advanced Java programming
Problem Link: String length in Advanced Java programming