摘要: File file = new File("D:\\javaClass\\image"); // 测试此抽象路径名表示的文件或目录是否存在。 // 当且仅当此抽象路径名表示的文件或目录存在时,返回 true;否则返回 false file.exists(); // 且仅当不存在具有此抽象路径名指定名称的文件时,不可分地创建一个新的空文件。 // 如果指定的文件不... 阅读全文
posted @ 2017-12-11 15:30 newXin 阅读(214) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] argv) {// 使用默认时区和语言环境获得一个日历Calendar cale = Calendar.getInstance();// 将 Calendar 类型转换成 Date 类型Date tasktime = cale.get 阅读全文
posted @ 2017-12-11 15:07 newXin 阅读(5905) 评论(0) 推荐(0) 编辑