摘要: 字符串截取,substring(int beginIndex) 返回一个新的字符串,它是此字符串的一个子字符串。 substring(int beginIndex, int endIndex) 返回一个新字符串,它是此字符串的一个子字符串。 beginIndex - 起始索引(包括)。从0开始 en 阅读全文
posted @ 2017-09-29 15:34 七千米蔚蓝 阅读(384) 评论(0) 推荐(0)
摘要: 常用语多线程中,确保线程安全,自我感觉和线程锁差不多(原理大致相同) public final static AtomicLong a = new AtomicLong(); 默认参数为0,当然可以自定义 public final static AtomicLong a = new AtomicLo 阅读全文
posted @ 2017-09-29 14:25 七千米蔚蓝 阅读(278) 评论(0) 推荐(0)