单项选择题
设有定义:String s=“World”;下列语句错误的是( )。 A.
int m=s.indexOf(‘r’) B.
int n=s.length() C.
char c=s.charAt(0) D.
String str=s.append(‘2’)
点击查看答案&解析
