摘要: 1 package cn.itcast.p2.stringbuffer.demo; 2 3 public class StringBufferDemo { 4 5 public static void main(String[] args) { 6 // TODO Auto-generated me 阅读全文
posted @ 2021-10-13 22:59 doremi429 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.itcast.p1.string.demo; 2 3 class StringObjectDemo { 4 public static void main(String[] args) { 5 // String s1 = "abc"; 6 // String s2 = " 阅读全文
posted @ 2021-10-13 21:31 doremi429 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.itcast.p1.string.demo; 2 3 import java.util.Iterator; 4 5 import com.sun.org.apache.xpath.internal.operations.Equals; 6 7 public class St 阅读全文
posted @ 2021-10-13 20:54 doremi429 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.itcast.p1.string.demo; 2 3 public class StringConstructorDemo { 4 public static void main(String[] args) { 5 stringConstructorDemo(); 6 s 阅读全文
posted @ 2021-10-13 17:23 doremi429 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.itcast.p1.string.demo; 2 3 public class StringDemo { 4 public static void main(String[] args) { 5 /* 6 * String类的特点: 7 * 字符串对象一旦被初始化就不会被改 阅读全文
posted @ 2021-10-13 16:56 doremi429 阅读(15) 评论(0) 推荐(0) 编辑