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)
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)
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)
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)
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)