摘要: 正则表达式:就是一个具有匹配规则的字符串 匹配规则位置:java.util.regex.Partten 常用匹配规则介绍: A:字符 x字符X 。举例'a'表示字符a \\ 反斜线字符 \n 换行符(\u000A) \r 回车符(\u000D) B:字符类 [abc] a、b或者c(简单类) [^a 阅读全文
posted @ 2022-03-06 20:13 CGGirl 阅读(300) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { String s1 = "Hello"; String s2 = "World"; System.out.println(s1 + " " + s2);//Hello World change(s1, s2); Sys 阅读全文
posted @ 2022-03-06 16:51 CGGirl 阅读(57) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { String s= "hello"; //String >StringBuffer //构造方法的方式转换 StringBuffer sb = new StringBuffer(s); //追加字符串到字符缓冲区的方式 阅读全文
posted @ 2022-03-06 16:35 CGGirl 阅读(82) 评论(0) 推荐(0)