![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java基础
xfjjs江城子
这个作者很懒,什么都没留下…
展开
-
Java 自定义map
Node节点类:public class Node { private Object key; private Object value; private Node next; public Node(){ } public Node(Object key,Object value){ this.key=key; ...原创 2019-12-09 15:12:39 · 523 阅读 · 0 评论 -
Java通过反射获取对象的私有变量
public class StudentDemo { public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException, InstantiationException, NoSuchFieldException, SecurityException { Student...原创 2019-12-04 15:33:42 · 1873 阅读 · 0 评论 -
【面试题】a b c 三个布尔型变量,至少两个为真的时候返回true
boolean a = true;boolean b = false;boolean c = true;System.out.println(a ^ b ? c : a);原创 2019-11-08 18:19:30 · 1497 阅读 · 1 评论 -
java使用xpath
xpath的使用依赖于dom4j.jar以及jaxen.jarjaxen.jar下载地址原创 2018-11-03 18:12:05 · 745 阅读 · 0 评论 -
证明Stringbuffer,Stringbuilder线程安全问题
public static void main(String[] args) { // 证明StringBuffer线程安全,StringBuilder线程不安全 final StringBuffer stringBuffer = new StringBuffer(); final StringBuilder stringBuilder = new StringBuilder();...转载 2019-05-19 20:01:19 · 352 阅读 · 0 评论