AtomicInteger ,一个提供原子操作的 Integer 的类,常见的还有AtomicBoolean、AtomicInteger、AtomicLong、AtomicReference 等,他们的实现原理相同, 区别在与运算对象类型的不同。令人兴奋地,还可以通过 AtomicReference ...
分类:
其他好文 时间:
2020-02-20 13:02:47
阅读次数:
58
一. 数值类型 类型 存储大小 描述 范围 smallint 2字节 小范围整数 -32768 ~ +32767 integer 4字节 整数的典型存储 -2147483648 ~ +2147483647 bigint 8字节 大范围整数 -9223372036854775808 ~ 9223372 ...
分类:
数据库 时间:
2020-02-20 12:56:10
阅读次数:
92
做Java开发的人,一生至少该有一次或多次遇到【For input String: ""】这样的报错问题,原因通常都是出现在字符串强制转换成数值类型的时候报的错。 比如: String yanggb = ""; int num = Integer.parseInt(yanggb); 这段代码就会报出 ...
分类:
编程语言 时间:
2020-02-20 10:13:32
阅读次数:
174
Description Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: ...
分类:
其他好文 时间:
2020-02-20 09:52:52
阅读次数:
75
Description Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, jus ...
分类:
其他好文 时间:
2020-02-20 09:28:12
阅读次数:
79
public class Solution { /** * @param costs: n x 3 cost matrix * @return: An integer, the minimum cost to paint all houses */ public int minCost(int[][ ...
分类:
其他好文 时间:
2020-02-19 21:05:47
阅读次数:
63
public class Solution { /** * @param s: a string, encoded message * @return: an integer, the number of ways decoding */ public static int numDecodings ...
分类:
其他好文 时间:
2020-02-19 20:54:13
阅读次数:
67
宅在家中无事,刷面试题,发现了一个很有意思的面试题。 就来琢磨一下这个是如何能够处理成功。(这是一个长更新视频,说不定中间就干其他的去了,慢慢更ing) StratTime : 202002191600 首先我们来造一下数据。虽然不知道淘宝的购物记录,但是我们来算成ip浏览记录吧。那么我们来获取10 ...
分类:
其他好文 时间:
2020-02-19 17:34:27
阅读次数:
86
网站:http://www.sci99.com/targetprice/网站通过点击日历来切换内容,使用Ajax,刷新的数据包只有数据那一块区域。 通过post请求获取日期对应的内容,刚开始只构造selecttime,结果获得的日期还是默认的 所以还要构造中间几个参数:__VIEWSTATE、__V ...
分类:
其他好文 时间:
2020-02-19 16:38:15
阅读次数:
89
@Override @Transactional(readOnly = true) // 只读事务 public Page<People> getPage(Integer pageNum, Integer pageLimit) { Pageable pageable =new PageRequest ...
分类:
编程语言 时间:
2020-02-19 11:36:35
阅读次数:
136