装箱:将基本类型用他们对应的引用类型包装起来 拆箱:将包装类型转换为基本类型 自动拆装箱: Integer i =10; //自动装箱 反编译后代码:integer i = Integer.valueOf(10); int b= i; //自动拆箱 反编译后代码:int b = i.intValue ...
分类:
其他好文 时间:
2020-03-14 11:09:26
阅读次数:
63
解决方法:不指定宽度如:INT 后面不要加宽度 Integer display width is deprecated and will be removed in a future release:整数显示宽度已弃用,将在以后的版本中删除 对于整数数据类型如INT [M],M指示显示宽度,对于浮点 ...
分类:
数据库 时间:
2020-03-13 13:00:59
阅读次数:
768
mybatis使用存储过程 创建存储过程 mysql CREATE DEFINER= @`localhost select_user_count`(out userCount INTEGER,OUT postCount INTEGER) BEGIN Routine body goes here... ...
分类:
其他好文 时间:
2020-03-12 18:33:29
阅读次数:
45
1 class Solution { 2 public int[] twoSum(int[] nums, int target) { 3 Map<Integer, Integer> map = new HashMap<>(); 4 for (int i = 0; i < nums.length; i ...
分类:
编程语言 时间:
2020-03-12 14:41:34
阅读次数:
64
/** * * 问题: * 最大值减去最小值小于或等于num子数组的数量 * 给定数组arr和整数num,共返回有多少个子数组满足如下情况: * 1.max(arr[i..j])-min(arr[i..j]) <= num * 2.max(arr[i..j])表示子数组arr[i..j]中的最大值 ...
分类:
其他好文 时间:
2020-03-12 14:23:09
阅读次数:
40
java中的类把方法和数据链接在一起,构成了包含式的处理单元。java中不能定义基本数据类型对象,为了能将基本类型视为对象处理,并能连接相关的方法,java为每个基本类型提供了包装类,如int型数值的包装类Integer和boolean型数值的包装类Boolean。java是可以直接处理基本数据类型 ...
分类:
编程语言 时间:
2020-03-12 09:43:45
阅读次数:
75
There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct ...
分类:
其他好文 时间:
2020-03-11 12:41:31
阅读次数:
74
413. 反转整数 中文English 将一个整数中的数字进行颠倒,当颠倒后的整数溢出时,返回 0 (标记为 32 位整数)。 样例 样例 1: 输入:123 输出:321 样例 2: 输入:-123 输出:-321 class Solution: def reverseInteger(self,n ...
分类:
其他好文 时间:
2020-03-11 12:38:20
阅读次数:
50
.1)如何禁用二级缓存 1 在具体要关闭的mapper.xml中的select标签里面填写 <select id="selectStudentById" resultType="student" parameterType="Integer" useCache="false"> select * f ...
分类:
系统相关 时间:
2020-03-10 20:04:53
阅读次数:
103
和三数之和思路一样,先排序,再双指针。 class Solution { public List<List<Integer>> fourSum(int[] nums, int target) { Arrays.sort(nums); List<List<Integer>> res = new Arr ...
分类:
其他好文 时间:
2020-03-09 23:54:02
阅读次数:
95