2017年9月26日

JDK自带的Timer类

摘要: Timer类负责设定TimerTask的起始和间隔执行时间。具体的执行任务,由用户创建一个TimerTask的继承类,并实现其run()方法 timer.schedule() 阅读全文

posted @ 2017-09-26 14:27 赵磊磊 阅读(273) 评论(0) 推荐(0) 编辑

Calendar使用方法

摘要: Calendar类的静态方法getInstance()可以初始化一个日历对象: Calendar now = Calendar.getInstance(); 可以使用下面三个方法把日历定到任何一个时间: set(int year ,int month,int date) set(int year , 阅读全文

posted @ 2017-09-26 14:18 赵磊磊 阅读(512) 评论(0) 推荐(0) 编辑

文件的复制

摘要: /** * 下载本地文件 * @author 柳松 * @date 2015-12-30 下午3:27:02 * @throws Exception */ private static void downLoadLocalFile() throws Exception{ File file = ne 阅读全文

posted @ 2017-09-26 11:34 赵磊磊 阅读(161) 评论(0) 推荐(0) 编辑

导航