设有定义:String s=“World”;,下列语句错误的是()。
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’);
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’);
A、 String s = "Gone with the wind";String t = " good ";String k = s + t; B、 String s = "Gone with the wind";String t;t = s[3] + "one"; C、 String s = "Gone with the wind";String standard = s.toUpperCase(); D、 String s = "home directory";String t = s - "directory";
A、String s = c.readLine(); B、char[] c = c.readLine(); C、String s = c.readConsole(); D、char[] c = c.readConsole(); E、String s = c.readLine("%s", "name ");
A、String s = c.readLine(); B、char[ ] c = c.readLine(); C、String s = c.readConsole(); D、char[ ] c = c.readConsole(); E、String s = c.readLine("%s", "name "); F、char[ ] c = c.readLine("%s", "name ");
A、String s = "Gone with the wind";  String t = " good ";  String k = s + t; B、String s = "Gone with the wind";  String t;  t = s[3] + "one"; C、String s = "Gone with the wind";  String standard = s.toUpperCase(); D、String s = "home directory"; String t = s - "directory"
A、String s = “Gone with the wind”;  String t = “ good”;  String k = s + t; B、String s = “Gone with the wind”;  String t;  t = s[3] + “one”; C、String s = “Gone with the wind”;  String standard = s.toUpperCase(); D、String s = “home directory”;  String t = s – “directory”;
A、getParameter(String s) B、getValue(String s) C、getParameterNames(String s) D、getParameterValue(String s)
A、 String s = "Gone with the wind";String t = " good ";String k = s + t; B、 String s = "Gone with the wind";String t; t = s[3] + "one"; C、 String s = "Gone with the wind";String standard = s.toUpperCase(); D、 String s = "home directory";String t = s - "directory";