随笔分类 -  Java

Java解压和压缩Tar
摘要:package org.jeecg.runner; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiv 阅读全文
posted @ 2022-05-30 09:18 月零Ray 阅读(2343) 评论(0) 推荐(0)
Java获取本地IP地址(Linux)
摘要:package com.cfcc.cfcs.common.utils; import java.net.InetAddress; import java.net.NetworkInterface; import java.util.Enumeration; public class IPUtils 阅读全文
posted @ 2022-05-30 09:17 月零Ray 阅读(2347) 评论(0) 推荐(0)
Java复制文件和文件夹
摘要:package com.cfcc.cfcs.common.utils; import java.io.*; /** * @Description: 复制文件夹(copyFolder),复制文件(copyFile) * */ public class copyUtil { public static 阅读全文
posted @ 2022-05-30 09:16 月零Ray 阅读(417) 评论(0) 推荐(0)
List字符串和数字用Collections.sort排序
摘要:public static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("12"); list.add("2"); list.add("34"); list.add("52"); l 阅读全文
posted @ 2020-05-18 10:34 月零Ray 阅读(2307) 评论(0) 推荐(0)
HttpUtil工具类
摘要:代码: 阅读全文
posted @ 2019-07-15 16:39 月零Ray 阅读(2425) 评论(0) 推荐(0)
密码验证
摘要:js代码: java代码: 阅读全文
posted @ 2019-04-28 16:24 月零Ray 阅读(329) 评论(0) 推荐(0)
jsonarray根据id排序
摘要:List jsonValue=new ArrayList(); JSONArray sortJsonarr=new JSONArray(); for (int i = 0; i () { private static final String key="id"; public int compare(JSONOb... 阅读全文
posted @ 2019-03-18 10:10 月零Ray 阅读(187) 评论(0) 推荐(0)
判断密码是否包含数字和字母
摘要:代码: 阅读全文
posted @ 2018-12-29 17:26 月零Ray 阅读(394) 评论(0) 推荐(0)
判断时间是否超过六个月
摘要:代码1: 代码2: 阅读全文
posted @ 2018-12-29 17:19 月零Ray 阅读(560) 评论(0) 推荐(0)