![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
帅气的椅子
这个作者很懒,什么都没留下…
展开
-
java 调用小程序
JAVA 调用小程序。原创 2023-05-29 17:18:57 · 388 阅读 · 1 评论 -
eclipse 国内下载镜像地址
eclipse 的服务器在国外,下载时会较慢,可用国内镜像地址http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/转载 2022-01-30 14:02:27 · 4985 阅读 · 0 评论 -
java.lang.OutOfMemoryError: Java heap space 内存溢出
处理方法是设置TOMCAT的内存大小Eclipse下解决办法:Window–>Preference–>JAVA–>Installed JREs -->Edit–>Default VM arguments下填上:-Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=600m在这里插入图片描述...转载 2021-09-06 13:31:55 · 142 阅读 · 0 评论 -
判断String存在,号如存在以,号分组
public static int count(String text,String sub){ //字段,符号int count =0, start =0;while((start=text.indexOf(sub,start))>=0){start += sub.length();count ++;}return count;}int comma = count(fengZhuangSpecials ,",");if(comma>0){String[] split =原创 2021-05-21 13:09:36 · 189 阅读 · 0 评论 -
https://blog.csdn.net/weixin_35886269/article/details/114870016
https://blog.csdn.net/weixin_35886269/article/details/114870016转载 2021-05-18 14:07:01 · 4078 阅读 · 0 评论 -
比较两个list内容取出不同
//比较两个list public static List getDiffrent(List list1, List list2){ List diff = new ArrayList(); String temp1 = list1.toString ().replaceAll ("[\[\]]", “,”).replaceAll ("\s+", “”); &nb原创 2021-04-20 16:10:36 · 1056 阅读 · 0 评论 -
解压路径下文件返回list
//解压目标路径下文件 public List unpacktheTXT(String path ){ List resultList = new ArrayList(); StringBuilder result = new StringBuilder(); try { File file = new F原创 2021-04-20 16:08:20 · 118 阅读 · 0 评论 -
对List集合进行排序
升序Collections.sort(kaigongdanList, new Comparator() {@Overridepublic int compare(kaigongdan o1, kaigongdan o2) {if (o1.getStepId() > o2.getStepId()) {return 1;}if (o1.getStepId() == o2.getStepId()) {return 0;}return -1;}});降序Collections.so原创 2021-04-20 16:06:17 · 104 阅读 · 0 评论 -
java利用C盘自带解压软件进行压缩包解压
public String decompression(String tat ,String zipPathName){//tat 是压缩文件路径,zipPathName 是解压后保存路径Runtime runtime = Runtime.getRuntime();String textName = “”;File testFile = new File(zipPathName);String abnormal = “”;if(!testFile .exists()) {new File(zi原创 2021-03-10 13:44:19 · 177 阅读 · 0 评论