搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。

A、字符串"helloworld"中不包含G字符,indexOf返回0

B、字符串"helloworld"中不包含G字符,indexOf返回null

C、字符串"helloworld"中不包含G字符,indexOf返回-1

D、字符串"helloworld"中不包含G字符,indexOf返回1

更多“使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。”相关的问题
第1题

A、charAt()方法是获取位于指定索引位置字符  B、indexOf()方法是查找字符或字符串位置,返回字符串出现所有位置  C、charAt()方法参数可以为一个或两个  D、indexOf()方法参数为指定索引值  

点击查看答案
第2题

A、A.常量字符串使用String,非常量字符串使用StringBuffer。  B、B.使用StringBuffer时候设置初始容量。  C、C.尽量使用StringTokenizer代替indexOf()和substring()。  D、D.尽量不要使用StringBuffer,StringTokenizer类。  

点击查看答案
第3题

A、match()  B、indexOf()  C、search()  D、concat()  

点击查看答案
第4题

A、equals(String)  B、trim()  C、append()  D、indexOf()  

点击查看答案
第5题

A、mid(2,s)  B、charAt(2)  C、s.indexOf(“v”)  D、indexOf(s,”v”)  

点击查看答案
第6题

A、mid(2,s);  B、charAt(2);  C、s.indexOf(’’v’’);  D、indexOf(s,’’v’’);  

点击查看答案
第7题

A、getParameter(String s)  B、getValue(String s)  C、getParameterNames(String s)  D、getParameterValue(String s)  

点击查看答案
第9题

A、A.int m=s.indexOf(‘r’);  B、B.char c=s.charAt(0);  C、C.int n=s.length();  D、D.String str=s.append(‘2’);  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服