摘要: import java.io.File; public class TestFile2 { public static void main(String[ ] args) { File f = new File("D:\\尚学堂第二阶段代码"); printFile(f, 0); } /** * 打 阅读全文
posted @ 2022-01-17 22:59 iiuu也一样 阅读(38) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; import java.io.IOException; import java.util.Date; public class TestFile { public static void main(String[]args) throws IOExcepti 阅读全文
posted @ 2022-01-17 20:13 iiuu也一样 阅读(25) 评论(0) 推荐(0) 编辑
摘要: import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class TestDateFormat { 阅读全文
posted @ 2022-01-17 18:02 iiuu也一样 阅读(31) 评论(0) 推荐(0) 编辑
摘要: import java.util.Date; //测试时间类 public class TestDate { public static void main(String[]args){ long nowNum = System.currentTimeMillis(); System.out.pri 阅读全文
posted @ 2022-01-17 15:47 iiuu也一样 阅读(17) 评论(0) 推荐(0) 编辑
摘要: //效率测试 public class TestString2 { public static void main(String[]args){ /**使用String进行字符串的拼接*/ String str8 = ""; long num1 = Runtime.getRuntime().free 阅读全文
posted @ 2022-01-17 15:00 iiuu也一样 阅读(25) 评论(0) 推荐(0) 编辑