摘要:
public class Application { public static void main(String[] args) { //StringBuffer和StringBuilder的使用(一般使用StringBuilder) //StringBuffer和StringBuilder 与S 阅读全文
posted @ 2023-02-15 16:05
惊鸿宴远赴人间
阅读(20)
评论(0)
推荐(0)
摘要:
public class Application { public static void main(String[] args) { String str="this is a text"; //1 将str中的单词单独获取出来 String[] s = str.split(" "); for ( 阅读全文
posted @ 2023-02-15 12:49
惊鸿宴远赴人间
阅读(20)
评论(0)
推荐(0)
摘要:
public class Demo01 { public static void main(String[] args) { String name="hello";//“hello”常量存储在字符串池中,字符串池在方法区中,字符串字面值可以共享 name="张三";//"张三"赋给name变量。给 阅读全文
posted @ 2023-02-15 12:49
惊鸿宴远赴人间
阅读(85)
评论(0)
推荐(0)
浙公网安备 33010602011771号