單項(xiàng)選擇題

如果想找到j(luò)ava中的字母v(輸出2)可以使用下列哪個代碼()

A.mid(2,s)
B.charAt(2)
C.s.indexof(‘v’)
D.indexof(s,’v’)

微信掃碼免費(fèi)搜題