摘要: 三种方式 public File(String pathname) -- 通过指定的路径名字符串创建一个File对象。 -- 若pathname指向的是文件,创建的File对象就表示文件; -- 若pathname指向的是目录,创建的File对象就表示目录。 public File(String p 阅读全文
posted @ 2022-11-03 23:25 竹石2020 阅读(30) 评论(0) 推荐(0)
摘要: package com.taobao.study; public class ChaiDemo { public static void main(String[] args) { Integer a = 100; // 自动装箱 int b = a +1; // 自动拆箱 System.out.p 阅读全文
posted @ 2022-11-03 22:20 竹石2020 阅读(23) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; import java.util.Scanner; /* 验证身份证的号码 */ public class PersonDemo { public static void main(String[] args) { Scanner sc =new Sca 阅读全文
posted @ 2022-11-03 20:20 竹石2020 阅读(19) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; public class TestString { public static void main(String[] args) { test(); test2(); } public static void test(){ String st = "h 阅读全文
posted @ 2022-11-03 19:22 竹石2020 阅读(77) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; import java.util.Arrays; public class StringDemo { public static void main(String[] args) { String name = new String("caihengai 阅读全文
posted @ 2022-11-03 12:59 竹石2020 阅读(25) 评论(0) 推荐(0)