在Java 中如果要在字符串类型对象s=“JAVA”,中找出‘V’出现的位置可使用下面哪个方法()
A.mid(2,s)
B.harAt(2)
C.s.indexOf(‘V’)
D.indexOf(s,’V’)
B、harAt(2)
A.mid(2,s)
B.harAt(2)
C.s.indexOf(‘V’)
D.indexOf(s,’V’)
B、harAt(2)
第2题
A.s.replace(6,9,“World”)
B.s.replace(6,10,“World”)
C.s=“World”
D.s=replace(“java”,“World”)
第6题
A.基本数据类型和String相加结果一定是字符串型
B.char类型和int类型相加结果一定是字符
C.double类型可以自动转换为int
D.char+int+double+""结果一定是double;
第7题
A.基本数据类型和String相加结果一定是字符串型
B.char类型和int类型相加结果一定是字符
C.double类型可以自动转换为int
D.char+int+double+""结果一定是double;
第8题
A.基本数据类型和String相加结果一定是字符串型
B.char类型和int类型相加结果一定是字符
C.double类型可以自动转换成int
D.char + int + double + 结果一定是double
第9题
A.bookTypeList.add("小说");
B.bookTypeList.get("小说");
C.bookTypeList.contains("小说");
D.bookTypeList.remove("小说");
第10题
A.bookTypeList.add("小说")
B.bookTypeList.get("小说")
C.bookTypeList.contains("小说")
D.bookTypeList.remove("小说")