Java中主要有三个与replace相关的方法,它们分别处理不同类型的替换需求:replace(charoldChar,charnewChar):替换字符replace(CharSequencetarget,CharSequ...