Java String
Java String
String str = “Hi There”;
charAt( n ) – str.charAt(1) =>‘i’;
str.toLowerCase() => “hi there”;
str.equals(“hi There”) => false;
str.replace(“Hi”, “Hello”) => “Hello There”;
str.replace(“e”, “”) => “Hi Thr”;
str.replaceFirst(“e”, “
原创
2020-07-16 10:50:10 ·
81 阅读 ·
0 评论