String类中替换字符串的方法是( )。
A、substring
B、replace
C、indexOf
D、split
出自:河南工业大学面向对象程序设计