摘要:需求 学习cobol过程中,找了一本电子书,但是有水印。 WPS 可以擦除,但是需要开通会员。 能不能用java程序去除水印呢? 实现 先查阅一些资料,开拓视野。 第一步:安装 org.apache.pdfbox:pdfbox-app:3.0.2 ,这是一个可执行jar,执行后可弹出Swing图形用
阅读全文
摘要:Integer2 != Integer2 巨坑 最近遇到一个奇怪的问题,存到user中的某个key的数据类型变了 下面这段代码,本来是图方便获取了 map ,然后将list转成string ,然后put回到这个map,然后使用这个map 却不成想,类型也跟着变了。 这就是引用类型使用的风险 impo
阅读全文
摘要:为什么说方法签名,这是java 方法重载 (overload) 的唯一依据 https://docs.oracle.com/javase/tutorial/java/javaOO/methods.html More generally, method declarations have six co
阅读全文
摘要:最大匹配(默认): 最小匹配(加一个问号): 匹配 // 注释: [\t ]*//.*[^\r\n] 匹配 /** */ doc注释和/* */ 块注释(): [\t ]*/\*[\s\S]*?\*/ 验证: /* * Copyright (c) 1994, 2013, Oracle and/or
阅读全文
摘要:jar 包下载 https://releases.aspose.com/java/repo/com/aspose/aspose-words/21.11/aspose-words-21.11-jdk17.jar 参考文档 https://blog.aspose.com/words/convert-wo
阅读全文
摘要:目标识别需要具备的特征:有package,是class,/** ... */ doc文档,只识别单行 public static void main(String[] args) { System.out.println(getClassDoc( "package cn.zno.xxx;\r\n"
阅读全文
摘要:import java.io.File; import java.util.Iterator; import org.apache.commons.io.FileUtils; import org.apache.commons.io.filefilter.FileFilterUtils; impor
阅读全文
摘要:调用 ff() 要用 Method method = A.class.getMethod("ff", new Class<?>[]{}); 或者 Method method = A.class.getMethod("ff", null); 不能用 Method method = A.class.ge
阅读全文
摘要:<dependency> <groupId>cn.xs</groupId> <artifactId>qishi-api</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> // D:\mvnrepository\cn\xs\qis
阅读全文
摘要:import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.alibaba.fastjson.JSONArray; import com.a
阅读全文
摘要:import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Set; import java.util.TreeSet; i
阅读全文
摘要:public static void main(String[] args) { List<String> list = Lists.asList("1,2", new String[] { "3,4" }); List<String> collect = null; // map 是对各个元素依次
阅读全文
摘要:public class Foo { public static class MenuTreeRes { public static class MenuTreeRes_Message { } public static class MenuTreeRes_Data { } public stati
阅读全文
摘要:单词辅助记忆 scheduled 车堵了? 线索 java.util.concurrent.Future<V>site:spring.io taskhttps://docs.spring.io/spring-framework/docs/4.2.x/spring-framework-referenc
阅读全文
摘要:https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html public class Outer { private int a = 1; Outer() { System.out.println("Outer()"); Syste
阅读全文
摘要:Internationalization (i18n) 1. 语言是用户属性之一 2. 页面可以切换语言 3. 语言保存在登录信息中 session 4. 根据语言切换 message 5. message 文件通过后缀区分语言 xxx_EN.properties 、xxx_CN.propertie
阅读全文
摘要:当用jd-gui.exe 反编译jar保存成java文件之后,会有许多注释,如下: /* 1: */ import java.io.File; /* 2: */ import java.io.IOException; /* 3: */ import java.io.PrintStream; /* 4
阅读全文
摘要:SomeClass.java import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import jav
阅读全文
摘要:package ztest; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Timer; import java.u
阅读全文
摘要:http://docs.oracle.com/javase/7/docs/technotes/tools/findingclasses.html https://docs.oracle.com/javase/tutorial/ext/basics/load.html http://docs.orac
阅读全文