![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java编程
Mr_YDK
1、有的程序员之所以犯错误,不是因为他们不懂,而是因为他们自以为什么都懂。
2、编程就是算法和数据结构,算法和数据结构是编程的灵魂。
展开
-
Json字符串转JSONObject对象保证属性及其内部JSONObject有序(本身顺序而非需要指定排序)
// 转为LinkedHashMapLinkedHashMap<String, Object> jsonMap = JSON.parseObject(result,LinkedHashMap.class, Feature.OrderedField);// 取其子对象,此时子对象的属性也变为有序,直接强转为JSONObject然后遍历即可Object dataObj = json...原创 2019-10-22 13:49:12 · 2301 阅读 · 0 评论 -
关于代码中与synchronized特性有关的类的选择,选择线程安全的类
Early classes of the Java API, such as Vector, Hashtable and StringBuffer, were synchronized to make them thread-safe. Unfortunately, synchronization has a big negative impact on performance, even whe...原创 2018-05-11 15:17:36 · 265 阅读 · 0 评论 -
Java中修饰符的先后顺序private public abstract static final 等
The Java Language Specification recommends listing modifiers in the following order:1. Annotations2. public3. protected4. private5. abstract6. static7. final8. transient9. volatile10. synchronized11. ...原创 2018-05-12 09:52:15 · 6818 阅读 · 0 评论 -
Java单例模式的几种写法
懒一下 , 这个写的很好 https://www.cnblogs.com/garryfu/p/7976546.html原创 2018-04-27 15:12:51 · 163 阅读 · 0 评论 -
关于封装Httpclient调用接口
https://blog.csdn.net/qq9808/article/details/78320816https://www.cnblogs.com/wdpnodecodes/p/7807027.html原创 2018-06-12 10:15:49 · 820 阅读 · 0 评论 -
整理收集的一些常用java工具类
1.json转换工具 [java] view plain copy package com.taotao.utils; import java.util.List; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databin...转载 2018-05-24 16:29:41 · 308 阅读 · 0 评论