String Length Method Output
What is the output when the above code is run?
public class LengthTest {
public static void main(String[] args) {
String text = "AP CS A";
int result = text.length() * 2;
System.out.println(result);
}
}
A
14
B
7
C
13
D
8
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE