标签:eal racket 字符串替换 replace ide sys int world rac
String str="Hello World";
System.out.println( str.replace( ‘H‘,‘W‘ ) );
System.out.println( str.replaceFirst("He", "Wa") );
System.out.println( str.replaceAll("He", "Ha") );
标签:eal racket 字符串替换 replace ide sys int world rac
原文地址:https://www.cnblogs.com/onetheway2018/p/11553093.html