摘要: 在bat里面写上 java -cp .; class名 如果有引入第三方包需要cp.;后面加上 路径要写全 阅读全文
posted @ 2023-07-23 11:25 liw66 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 解决方法:把生成的excel文件数据删除保存后作为新模版就可以了 阅读全文
posted @ 2023-07-23 11:22 liw66 阅读(11) 评论(0) 推荐(0) 编辑
摘要: DecimalFormat 函数默认的四舍五入的方法是银行家算法(RoundingMode.HALF_EVEN),跟一般的四舍五入的方法不同 可以用String.format("%.6f",d)来代替 也可以指定 df.setRoundingMode(RoundingMode.HALF_UP) 为正 阅读全文
posted @ 2023-07-23 11:20 liw66 阅读(169) 评论(0) 推荐(0) 编辑
摘要: https://commons.apache.org/proper/ 进入相关产品主页后点Downloads 鼠标移动到最下面点archives... 然后在新打开的窗口里面点击binaries/ 选择需要下载的版本 win环境下载zip文件 阅读全文
posted @ 2023-07-23 10:44 liw66 阅读(69) 评论(0) 推荐(0) 编辑
摘要: java -cp d:\java\poi.jar;d:\java\odbc.jar; MyClass ps:如果class有包名,一定要加上包名,如com.code.MyClass,并且在包的最顶端(com)的上一层目录执行命令,否则会提示找不到主类 阅读全文
posted @ 2021-01-23 19:40 liw66 阅读(13) 评论(0) 推荐(0) 编辑
摘要: import javafx.application.Application; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.contr 阅读全文
posted @ 2020-12-12 18:02 liw66 阅读(207) 评论(0) 推荐(0) 编辑
摘要: import java.io.*; import java.text.Collator; import java.util.*; public class AddressBook { public static void main(String[] args) { new AddressBook() 阅读全文
posted @ 2020-11-08 10:02 liw66 阅读(507) 评论(0) 推荐(0) 编辑
摘要: import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Test { public static void main(String[] args) { @SuppressWarnin 阅读全文
posted @ 2020-09-29 12:30 liw66 阅读(276) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class Test { public static void main(String[] args) { @SuppressWarnings("resource") Scanner input = new Scanner(Syste 阅读全文
posted @ 2020-09-28 22:08 liw66 阅读(446) 评论(0) 推荐(0) 编辑
摘要: import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Test { public static void main(String[] args) { @SuppressWarnin 阅读全文
posted @ 2020-09-16 16:01 liw66 阅读(344) 评论(0) 推荐(0) 编辑