类 { main{ 新对象 对象.属性; 对象.方法 } 对象{ 属性, 方法 } }
Thread 多线程创建: 方式一: 继承 Thread 类 muti-thread 结果:多线程交互 thread result thread result 如果把 t1.
String str = "12hello34world5java7891mysql456"; //把字符串中的数字替换成,,如果结果中开头和结尾有,的话去掉 String string = str.replaceAll("\\d+", ",").replaceAll("^,|,$", ""); System.
解决线程安全问题: Lock锁 thread Lock Lock锁 和synchronized区别? 相同: 都可以解决线程安全问题
treeMap 一直出现在各种算法中,可是我每次都很难记得清它的用法,所以来一个笔记,让自己了解的更清楚点 lowerKey()方法用于返回严格小于给定键(作为参数传递)的最大键。用简单的话来说,此方法用于查找作为参数传递的元素之后的下一个最大元素。 // create an empty TreeMap TreeMap<Integer, String> numMap = new TreeMap<Integer, String>(); // Insert the values numMap.
Lombok @Data @Data public class UserBean{ private Integer id; private String userName; } @Getter @Setter @RequiredArgsConstructor @ToString @EqualsAndHashCode
算法、操作系统、计算机网络,多线程、IO模型、内存管理、JVM
a full-stack web application for users to understand java web system
a full-stack web application for users to understand java web system
a full-stack web application for users to understand java web system