单项选择题
String date="Today is Sunday.";String str2=data.CharAt(s.length()-1);则str2为()
A.y
B..
C.null
D.false
点击查看答案
相关考题
-
单项选择题
Stringdate="TodayisSunday";把date转换成全小写的语句是()
A.toLowerCase(date);
B.date.toLowerCase();
C.date.toUpperCase();
D.toUpperCase(date); -
单项选择题
两个字符串String str1,str2;错误的连接二者的方式是()
A.str1+str2
B.str1.str2
C.str1.contat(str2)
D.str2.contat(str1) -
单项选择题
String(byte[],int,int)中,第三个参数用来生成字符串的byte型数组的()
A.长度
B.起始位置
C.终止位置
D.终止位置+1
