Given a String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String referred to by sentence.

Given a String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String referred to by sentence.

LANGUAGE: JAVA

CHALLENGE:

Given a String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String referred to by sentence.

SOLUTION:


sentence.length()

Add comment