Java基础
文章平均质量分 51
nohup213
qifei
展开
-
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.近来写Java总是遇到这个问题,Build-rebuild project之后问题解决。具体原因未知,有同样问题的找到根源请指点一下。...原创 2021-06-04 11:10:10 · 38231 阅读 · 26 评论 -
java使用正则表达式matcher.find(),matcher.group()
import java.util.regex.Matcher; import java.util.regex.Pattern; public class GroupIndexAndStartEndIndexTest { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated meth原创 2020-10-19 15:04:13 · 1502 阅读 · 0 评论 -
基于POI,使用java处理Excel数据
pom文件 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.12</version> </dependency>实例代码注意:写入数据后一定要workbook.writ原创 2020-10-14 11:17:03 · 109 阅读 · 0 评论 -
Java8关于Stream的基本使用
创建stream的几种方式:使用数组:Stream stm=Stream.of({“a”,“b”,“c”});Stream stm=Arrays.stream({“a”,“b”,“c”});使用集合:List list =new ArrayList();List.add("…");Stream stm =list.stream();demo:public static void main(String[] args) {List.of(" Apple ", " pear “, "原创 2020-09-23 17:22:56 · 202 阅读 · 0 评论