上一页 1 2 3 4 5 6 7 8 9 ··· 42 下一页
摘要: package com.tedu.study01; import java.util.*; public class TestMap { public static void main(String[] args) { System.out.println("输入需要统计的字符串:"); Strin 阅读全文
posted @ 2022-11-07 21:39 竹石2020 阅读(114) 评论(0) 推荐(0)
摘要: map初始容量是16 package com.tedu.study01; import java.util.HashMap; import java.util.Map; public class study_Map { public static void main(String[] args) { 阅读全文
posted @ 2022-11-07 21:27 竹石2020 阅读(70) 评论(0) 推荐(0)
摘要: set集合的学习 set集合可以去重,不能重复添加 package com.tedu.study01; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class Study_Set 阅读全文
posted @ 2022-11-07 19:44 竹石2020 阅读(24) 评论(0) 推荐(0)
摘要: package com.tedu.day1302; import java.util.ArrayList; import java.util.Collection; public class Study_Collection { public static void main(String[] ar 阅读全文
posted @ 2022-11-06 23:10 竹石2020 阅读(25) 评论(0) 推荐(0)
摘要: 泛型的使用 package com.tedu.day1302; public class Study_T { public static void main(String[] args) { String[] arr1 = {"a","b","c","d"}; Integer[] arr2 = {1 阅读全文
posted @ 2022-11-06 19:50 竹石2020 阅读(35) 评论(0) 推荐(0)
摘要: 对象的序列化 package com.tedu.day1301; import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.Serializable; /* 完成序列化 序列化:将java对象 阅读全文
posted @ 2022-11-05 22:58 竹石2020 阅读(33) 评论(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 阅读(32) 评论(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 阅读(22) 评论(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 阅读(23) 评论(0) 推荐(0)
摘要: 三种方式 public File(String pathname) -- 通过指定的路径名字符串创建一个File对象。 -- 若pathname指向的是文件,创建的File对象就表示文件; -- 若pathname指向的是目录,创建的File对象就表示目录。 public File(String p 阅读全文
posted @ 2022-11-03 23:25 竹石2020 阅读(35) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 42 下一页