![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java工具类
文章平均质量分 75
Xiaoming的csdn
代码让生活更美好。
展开
-
Java读写文件
public static void readFile(String filePath) throws IOException { File file = new File(filePath); BufferedReader br = new BufferedReader(new FileReader(file)); String r = null; while (...原创 2018-05-04 19:26:13 · 210 阅读 · 0 评论 -
Java获取最近几天时间。
Calendar now = Calendar.getInstance();List<String> dates = new ArrayList<>();Long oneDay = 86400000L;//一天是这些毫秒。Long day = now.getTimeInMillis();//获取当前日期的毫秒数。for(int i = 0;i < warnin...原创 2018-05-15 09:47:57 · 1602 阅读 · 0 评论