单项选择题

String类中,用于返回指定字符串起始位置的方法是(  )。
A、charAt
 
B、indexOf
 
C、lastIndexOf
 
D、positionOf

微信扫码免费搜题