单选题

String类库成员函数中,从字符串中截取指定长度字符的成员函数是( )。

A

indexOf()

B

substring()

C

endsWith()

D

length()

赣ICP备20007335号-2