[单选题]使用 String 对象的 indexOf()方法查找字符串“hello world”中是否包含 G,下列语句描述正确的是
国开题库
|
2023-11-20 12:58:46
|
15
[单选题]使用 String 对象的 indexOf()方法查找字符串“hello world”中是否包含 G,下列语句描述正确的是

A.字符串\"hello world\"中不包含 G 字符,indexOf 返回 0
B.字符串\"hello world\"中不包含 G 字符,indexOf 返回 null
C.字符串\"hello world\"中不包含 G 字符,indexOf 返回-1
D.字符串\"hello world\"中不包含 G 字符,indexOf 返回 1
查看答案

国家开放大学

形成性考核

您可能感兴趣的试题
TOP