hasMoreTokens():只要字符串中还有语言符号,即计数变量的值大于() ,该方法就返回true
A: -1
B: 0
C: 1
A: -1
B: 0
C: 1
举一反三
- hasMoreTokens():只要字符串中还有语言符号,即( )的值大于0,该方法就返回true,否则返回false。 A: 对象变量 B: 计数变量 C: 方法变量
- 使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。 A: 字符串"helloworld"中不包含G字符,indexOf返回0 B: 字符串"helloworld"中不包含G字符,indexOf返回null C: 字符串"helloworld"中不包含G字符,indexOf返回-1 D: 字符串"helloworld"中不包含G字符,indexOf返回1
- $b=true?0:true?1:2,变量b的值是多少? A: 0 B: true C: 1 D: 2
- 18.4______ (字符数组名1,字符数组名2)把字符数组2中的字符串连接到字符数组1 中字符串的后面,并删去字符串1后的串标志“\0”。
- 使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。 A: A字符串"helloworld"中不包含G字符,indexOf返回0 B: B字符串"helloworld"中不包含G字符,indexOf返回null C: C字符串"helloworld"中不包含G字符,indexOf返回-1 D: D字符串"helloworld"中不包含G字符,indexOf返回1