遍历中移除操作报错:java.util.ConcurrentModificationException Set<String> taskIdList = taskMapper.shelvesTaskV3();Set<String> collectionNames = markerTaskReposi ...
分类:
其他好文 时间:
2021-04-15 12:09:49
阅读次数:
0
事件监听 当某个事件发生,会产生什么? public class Demo01 { public static void main(String[] args) { //按下按钮,触发事件 Frame frame = new Frame(); Button button = new Button() ...
分类:
其他好文 时间:
2021-04-14 12:40:04
阅读次数:
0
增强for循环 public class ForDemo{ public static void main(String[] args){ int[] numbers = {10,20,30,40,50}; //遍历数组元素 for(int x:numbers){ System.out.printl ...
分类:
编程语言 时间:
2021-04-14 12:36:49
阅读次数:
0
此博客链接: 字符串中第二大的数 题目链接:https://leetcode-cn.com/problems/second-largest-digit-in-a-string/ 题目 给你一个混合字符串 s ,请你返回 s 中 第二大 的数字,如果不存在第二大的数字,请你返回 -1 。 混合字符串 ...
分类:
其他好文 时间:
2021-04-14 12:31:36
阅读次数:
0
Java常用类 Object类 Object类是所有类的父类,也就是说任何一个类在定义时如果没有明确地继承一个父类,那它就是Object类的子类。 Object的方法 boolean equals(Object) 比较两个对象是否相等。默认比较的是地址值。 String toString() 返回该 ...
分类:
编程语言 时间:
2021-04-14 12:27:43
阅读次数:
0
又是一季 “金三银四” ,你面试了吗? Q1:String、StringBuffer、StringBuilder 有什么区别? Tips:首先要整理出 String 的基本特性,Immutable、不可变等特性,其次是后两者与前者的区别,最后是 StringBuffer 与 StringBuilde ...
分类:
其他好文 时间:
2021-04-14 12:20:00
阅读次数:
0
hive提取字符串中域名的sql方法 需求如下: 想取如下字段里的访问的域名: "GET http://suo.im/4xhnBL HTTP/1.1" "CONNECT sapi.ads.544.com:443 HTTP/1.1" "GET http://100.110.1.52:8080/job/ ...
分类:
数据库 时间:
2021-04-14 12:16:48
阅读次数:
0
package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j = 5; j ...
分类:
其他好文 时间:
2021-04-14 12:09:53
阅读次数:
0
将数字转化为字符串 string tostring(int i) { stringstream ss; ss<<i; return ss.str(); } 字符串转化为数字 int str2num(string s) { int num; stirngstream ss(s); ss>>num; r ...
分类:
其他好文 时间:
2021-04-14 12:08:49
阅读次数:
0
// 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s ...
分类:
编程语言 时间:
2021-04-14 12:05:41
阅读次数:
0