随笔分类 -  Java

Java zone
摘要:Date /* * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license te 阅读全文
posted @ 2022-07-05 19:06 西北逍遥 阅读(131) 评论(0) 推荐(0)
摘要:ArithmeticException /* * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subjec 阅读全文
posted @ 2022-07-04 17:06 西北逍遥 阅读(142) 评论(0) 推荐(0)
摘要:BaseCalendar package sun.util.calendar; import java.util.TimeZone; import sun.util.calendar.AbstractCalendar; import sun.util.calendar.CalendarDate; i 阅读全文
posted @ 2022-07-03 17:26 西北逍遥 阅读(96) 评论(0) 推荐(0)
摘要:java File renameTo String imgFilePath = "1.png"; String imgNewFilePath = "1.jpg"; File oldFile = new File(imgFilePath); File newFile = new File(imgNew 阅读全文
posted @ 2022-06-23 19:10 西北逍遥 阅读(82) 评论(0) 推荐(0)
摘要:SpringBootApplication cannot be resolved to a type 在maven仓库中删除 spring-boot-autoconfigure 目录,然后重新 maven- update project,错误消除 ####################### 阅读全文
posted @ 2022-05-27 09:46 西北逍遥 阅读(717) 评论(0) 推荐(0)
摘要:java遍历目录下的目录和文件 public static void findStrFromManyFiles(String dirName) throws IOException{ File dir = new File(dirName); File[] files = dir.listFiles 阅读全文
posted @ 2022-05-12 00:25 西北逍遥 阅读(248) 评论(0) 推荐(0)
摘要:java读取文本内容 public static String readHtmlContent(String htmlPath) throws IOException { String htmlContentStr = ""; File htmlFile = new File(htmlPath); 阅读全文
posted @ 2022-05-12 00:11 西北逍遥 阅读(313) 评论(0) 推荐(0)
摘要:判断字符串中是否有数字 public static boolean HasDigit(String content) { boolean flag = false; Pattern p = Pattern.compile(".*\\d+.*"); Matcher m = p.matcher(cont 阅读全文
posted @ 2022-05-11 15:31 西北逍遥 阅读(128) 评论(0) 推荐(0)
摘要:合并两个csv package com.vfsd; import java.io.IOException; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.HashMap; import ja 阅读全文
posted @ 2022-04-29 21:39 西北逍遥 阅读(265) 评论(0) 推荐(0)
摘要:csv合并某几列 package com.vfsd; import java.io.IOException; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.HashMap; import j 阅读全文
posted @ 2022-04-27 10:10 西北逍遥 阅读(191) 评论(0) 推荐(0)
摘要:csv增加一列 package com.vfsd; import java.io.IOException; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.HashMap; import ja 阅读全文
posted @ 2022-04-26 16:03 西北逍遥 阅读(382) 评论(0) 推荐(0)
摘要:java 读取csv package com.vfsd; import java.io.IOException; import com.csvreader.CsvReader; public class ReadCSVData { public static void main(String[] a 阅读全文
posted @ 2022-04-13 15:49 西北逍遥 阅读(1265) 评论(0) 推荐(0)
摘要:pcd中 毫米转为米 package com.vfsd.core; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundExcept 阅读全文
posted @ 2022-04-11 17:16 西北逍遥 阅读(94) 评论(0) 推荐(0)
摘要:给pcd添加头 package com.vfsd.core; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException 阅读全文
posted @ 2022-04-10 22:02 西北逍遥 阅读(56) 评论(0) 推荐(0)
摘要:reverseshufflesortswaprotate package com.vfsd.core; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java. 阅读全文
posted @ 2022-04-09 17:34 西北逍遥 阅读(120) 评论(0) 推荐(0)
摘要:HttpURLConnection URL url = new URL(targetUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty 阅读全文
posted @ 2022-04-08 19:31 西北逍遥 阅读(173) 评论(0) 推荐(0)
摘要:HttpURLConnection package java.net; import java.io.InputStream; import java.io.IOException; import java.security.Permission; import java.util.Date; /* 阅读全文
posted @ 2022-04-07 20:45 西北逍遥 阅读(58) 评论(0) 推荐(0)
摘要:WebClient异步请求 public String getHtmlPageResponse(String url) throws Exception { //请求超时时间,默认20秒 int timeout = 20000; //等待异步JS执行时间,默认20秒 int waitForBackg 阅读全文
posted @ 2022-04-03 22:16 西北逍遥 阅读(501) 评论(0) 推荐(0)
摘要:8.3.1.2. final Fields A field can be declared final (§4.12.4). Both class and instance variables (static and non-static fields) may be declared final. 阅读全文
posted @ 2022-03-19 19:13 西北逍遥 阅读(38) 评论(0) 推荐(0)
摘要:8.3.1.1. static Fields If a field is declared static, there exists exactly one incarnation of the field, no matter how many instances (possibly zero) 阅读全文
posted @ 2022-03-17 17:19 西北逍遥 阅读(118) 评论(0) 推荐(0)