当前位置:百科知识 > 工学9

问题描述:

[单选] 使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。
A.字符串helloworld中不包含G字符,indexOf返回0 B.字符串helloworld中不包含G字符,indexOf返回null C.字符串helloworld中不包含G字符,indexOf返回-1 D.字符串helloworld中不包含G字符,indexOf返回1
参考答案:查看
答案解析:
☆收藏

随机题目