上一页 1 2 3 4 5 6 7 ··· 39 下一页
摘要: 对象的序列化 package com.tedu.day1301; import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.Serializable; /* 完成序列化 序列化:将java对象 阅读全文
posted @ 2022-11-05 22:58 竹石2020 阅读(17) 评论(0) 推荐(0) 编辑
摘要: package com.tedu.day1201; import java.io.FileInputStream; import java.io.FileOutputStream; public class CopyFile { public static void main(String[] ar 阅读全文
posted @ 2022-11-05 20:02 竹石2020 阅读(12) 评论(0) 推荐(0) 编辑
摘要: FileInputStream类 package com.tedu.day1201; import java.io.File; import java.io.FileInputStream; public class FileInputDemo { public static void main(S 阅读全文
posted @ 2022-11-05 17:37 竹石2020 阅读(11) 评论(0) 推荐(0) 编辑
摘要: package com.tedu.day1201; import java.io.File; import java.io.FileOutputStream; public class Study_Fos { public static void main(String[] args) { try 阅读全文
posted @ 2022-11-05 17:04 竹石2020 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 三种方式 public File(String pathname) -- 通过指定的路径名字符串创建一个File对象。 -- 若pathname指向的是文件,创建的File对象就表示文件; -- 若pathname指向的是目录,创建的File对象就表示目录。 public File(String p 阅读全文
posted @ 2022-11-03 23:25 竹石2020 阅读(15) 评论(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 阅读(10) 评论(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 阅读(9) 评论(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 阅读(46) 评论(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 阅读(13) 评论(0) 推荐(0) 编辑
摘要: package com.te.jdkapi; /* 字符串不可变。一经初始化就不会改变 */ public class Study_String { public static void main(String[] args) { String a = "123"; System.out.print 阅读全文
posted @ 2022-11-02 23:26 竹石2020 阅读(11) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 39 下一页