随笔分类 -  java

摘要:truetruetruetrue 阅读全文
posted @ 2019-12-15 17:23 tonggc1668 阅读(287) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_38653290/article/details/84647019 1.pom中build指定mainClass 但是 META-INF\MANIFEST.MF文件中没有指定Main-Class: test.core.Corejava -ja 阅读全文
posted @ 2019-11-14 15:31 tonggc1668 阅读(1036) 评论(0) 推荐(0)
摘要:深入理解Java对象的创建过程:类的初始化与实例化 https://blog.csdn.net/justloveyou_/article/details/72466416 Java类的初始化顺序 https://blog.csdn.net/xyajia/article/details/8092232 阅读全文
posted @ 2019-11-12 18:16 tonggc1668 阅读(93) 评论(0) 推荐(0)
摘要:深入理解ClassLoader工作机制(jdk1.8) https://blog.csdn.net/u014634338/article/details/81434327 五分钟看懂ClassLoader https://www.jianshu.com/p/554c138ca0f5 JVM类加载的过 阅读全文
posted @ 2019-10-28 15:49 tonggc1668 阅读(120) 评论(0) 推荐(0)
摘要:// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.company; import java.io.File; import java.io.IOException; import java.util.Colle... 阅读全文
posted @ 2019-08-13 11:27 tonggc1668 阅读(195) 评论(0) 推荐(0)
摘要:import java.util.concurrent.ThreadLocalRandom; private static final String AB = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public int getRandomInt() { return ThreadLocalRandom.current().nextInt(10000, 10... 阅读全文
posted @ 2019-05-24 14:38 tonggc1668 阅读(196) 评论(0) 推荐(0)
摘要:JAVA_HOME=C:\Program Files\Java\jdk1.7.0Path=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; cmd jav 阅读全文
posted @ 2018-09-10 20:37 tonggc1668 阅读(89) 评论(0) 推荐(0)
摘要:c.t.TestLog 阅读全文
posted @ 2018-06-05 11:18 tonggc1668 阅读(323) 评论(0) 推荐(0)
摘要:package com.yundaex.wms.config; public class IfmContextHolder { private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>(); pu 阅读全文
posted @ 2017-12-09 09:48 tonggc1668 阅读(122) 评论(0) 推荐(0)
摘要:父类--静态代码块子类--静态代码块父类--非静态代码块父类--构造函数子类--非静态代码块子类--构造函数 阅读全文
posted @ 2017-12-04 09:34 tonggc1668 阅读(174) 评论(0) 推荐(0)
摘要:import java.util.regex.Matcher; import java.util.regex.Pattern; String s = "c:\\test.txt"; //String regEx = ".+[\\\\]{0,}.+$"; String regEx = "\\\\"; 阅读全文
posted @ 2017-08-30 10:51 tonggc1668 阅读(194) 评论(0) 推荐(0)
摘要:byte abyte =-1; System.out.println(abyte); System.out.println(Integer.toBinaryString(abyte)); //取高四位 byte high = (byte) ((abyte>>4) & 0x0f); System.ou 阅读全文
posted @ 2017-08-18 14:48 tonggc1668 阅读(963) 评论(0) 推荐(0)
摘要:int a=-1; Integer b=0; Integer c=0; System.out.println(Integer.toBinaryString(a)); b=a>>1; c=a>>>1; System.out.println(Integer.toBinaryString(b)); Sys 阅读全文
posted @ 2017-08-18 11:13 tonggc1668 阅读(127) 评论(0) 推荐(0)
摘要:不同舍入模式下的舍入操作汇总 阅读全文
posted @ 2017-07-04 16:10 tonggc1668 阅读(1477) 评论(0) 推荐(0)
摘要:1.确认properties文件是什么编码格式,并确认文件在该格式下中文是正常显示的2.读取时候,进行转一层,先用ISO-8859-1读取字节流,然后根据properties的文件格式进行new String(byte,"文件编码格式"); new String(bundle.getString(" 阅读全文
posted @ 2017-05-27 13:25 tonggc1668 阅读(419) 评论(0) 推荐(0)