单项选择题

在Java中,如果要在字符串类型对象s= "java",中找出字母„v‟出现的位置(即位置2),可使用()。 

A.mid(2,s);
B.charAt(2);
C.s.indexOf(’’v’’);
D.indexOf(s,’’v’’);

相关考题