摘要: package cn.itcast.io.c.bytestream.write; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; public class FileOutputStreamDemo2 { private static final... 阅读全文
posted @ 2018-01-29 23:39 清风拂柳 阅读(217) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.c.bytestream.write; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class FileOutputStreamDemo ... 阅读全文
posted @ 2018-01-29 23:37 清风拂柳 阅读(513) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.b.digui; import java.util.Iterator; public class DiGuiDemo { /** * @param args */ public static void main(String[] args) { /* * 递归:其实就是功能的... 阅读全文
posted @ 2018-01-29 17:02 清风拂柳 阅读(112) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.a.file; import java.io.File; import java.util.LinkedList; public class GetAllFileByQueue { /** * @param args */ public static void main(String[] args) { ... 阅读全文
posted @ 2018-01-29 17:02 清风拂柳 阅读(147) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.a.file; import java.io.File; public class GetAllFiles { /** * @param args */ public static void main(String[] args) { /* * File类的listFiles... 阅读全文
posted @ 2018-01-29 17:00 清风拂柳 阅读(243) 评论(0) 推荐(0) 编辑
摘要: fileFilter过滤文件夹的过滤器 阅读全文
posted @ 2018-01-29 16:59 清风拂柳 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 先写过滤器 implements FilenameFilter,用于过滤指定扩展名的文件 阅读全文
posted @ 2018-01-29 16:57 清风拂柳 阅读(214) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.a.file; import java.io.File; public class FileMethodDemo3 { /** * @param args */ public static void main(String[] args) { //需求:对给定的目录获取内部的... 阅读全文
posted @ 2018-01-29 16:55 清风拂柳 阅读(927) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.a.file; import java.io.File; import java.text.DateFormat; import java.util.Date; public class FileMethodDemo { /** * @param args */ public static void main(S... 阅读全文
posted @ 2018-01-29 16:53 清风拂柳 阅读(151) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.io.a.file; import java.io.File; import java.io.IOException; public class FileMethodDemo2 { /** * @param args * @throws IOException */ public static void ma... 阅读全文
posted @ 2018-01-29 16:53 清风拂柳 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 分隔符File.separator 阅读全文
posted @ 2018-01-29 16:52 清风拂柳 阅读(198) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.api.a.date; import java.util.Calendar; public class DateTest3 { /** * @param args */ public static void main(String[] args) { // 4,获取给定年份的2月有多少天?【面试题】 ... 阅读全文
posted @ 2018-01-29 16:51 清风拂柳 阅读(111) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.api.a.date; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; public class DateTest2 { /** * @param args * @throws ParseException... 阅读全文
posted @ 2018-01-29 16:50 清风拂柳 阅读(109) 评论(0) 推荐(0) 编辑
摘要: package cn.itcast.api.a.date; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class DateTest { /** * @param ... 阅读全文
posted @ 2018-01-29 16:49 清风拂柳 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 将毫秒值转成 指定的日期的格式 xxxx年xx月xx日 hh:mm:ss 步骤: //1,毫秒值time--->Date Date date = new Date(time); //2,通过日期时间格式器对象DateFormat对... 阅读全文
posted @ 2018-01-29 16:48 清风拂柳 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 获取日期中的指定日期信息比如获取年,月,日 阅读全文
posted @ 2018-01-29 16:46 清风拂柳 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 将毫秒值转化成本地格式 阅读全文
posted @ 2018-01-29 16:44 清风拂柳 阅读(120) 评论(0) 推荐(0) 编辑