String str = "HelloWorld!";System.out.print(str.subString(5,10));
A: oWorl
B: oWorld
C: World
D: World!
A: oWorl
B: oWorld
C: World
D: World!
举一反三
- String str = "HelloWorld!";System.out.print(str.subString(5,10)); A: oWorl B: oWorld C: World D: World!
- world = "world"str = 'hello'print str+world 的结果为 A: helloworld B: hello world C: hello "world" D: 语法错误
- 下列定义字符串类string对象的语句中,错误的是( )。 A: string str; B: string str( “Hello, world” ); C: string str = “Hello, world”; D: string str = ‘Hello, world’;
- 以下语句执行结果是()String str = " hello World ";System.out.println(str.trim()); A: hello World B: hello World C: helloWorld D: 程序异常
- 11字符串测试1:下列字符串定义正确的是: A: String str="Hello World!"; B: Str str="Hello World!"; C: var str="Hello World!"; D: var str='Hello World!';