孤叶翔云

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

08 2020 档案

摘要:0. Java中常用的路径 System.getProperty("user.dir") 构造:File(path) 构造:FileInputStream(path) XXX.class.getResource.getPath() XXX.class.getClassLoader.getResour 阅读全文
posted @ 2020-08-26 22:16 孤叶翔云 阅读(665) 评论(0) 推荐(0)

摘要:1. Timer简单使用 简单使用: public class TimerTest { public static void main(String[] args) throws InterruptedException { // 创建Timer对象 Timer timer = new Timer( 阅读全文
posted @ 2020-08-23 15:10 孤叶翔云 阅读(227) 评论(0) 推荐(0)

摘要:1. 修改换行符 (如果使用git做代码管理,不需要进行这一步操作,因为git在上传代码时会自动将windows下的换行符/r/n转换为/n) file - other settings - settings for new project 2. 修改文件编码 file - other settin 阅读全文
posted @ 2020-08-02 16:24 孤叶翔云 阅读(357) 评论(0) 推荐(0)