public class User implements Comparable{ private String name; private int age; public User() { } public User(String name, int age) { this.name = name; ...
分类:
编程语言 时间:
2020-05-30 22:19:46
阅读次数:
85
1、点击空白页面,然后选择测试窗口。 2、点击完之后就会弹出一个测试窗口的页面 3、然后就可以输入sql进行调试 -- Created on 2020/5/30 by 123 declare -- Local variables here i integer; O_MSG VARCHAR2(50); ...
分类:
数据库 时间:
2020-05-30 15:53:10
阅读次数:
158
今天在工作中使用mybatis plus的selectBatchIds(List<Integer> ids)方法时,oracle报了ORA-01795的错。 则是因为oracle中使用 in 有限制,后面集合数目不能大于1000个,否则就会报错。 所以可以使用这种形式来规避。 select ... ...
分类:
其他好文 时间:
2020-05-30 14:18:47
阅读次数:
84
不断更新值和进位。 class Solution { public: int getSum(int a, int b) { return b == 0 ? a : getSum(a ^ b, ((unsigned int)a & b) << 1); } }; ...
分类:
其他好文 时间:
2020-05-30 01:24:53
阅读次数:
70
1049 Counting Ones (30分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of th ...
分类:
其他好文 时间:
2020-05-29 23:43:50
阅读次数:
106
题目描述 Created by Edwin Xu on 5/15/2020 11:35 PM 给定一个整数数组和一个整数 k,你需要找到该数组中和为 k 的 连续的子数组的个数。 示例 1 : 输入:nums = [1,1,1], k = 2 输出: 2 , [1,1] 与 [1,1] 为两种不同的 ...
分类:
编程语言 时间:
2020-05-29 22:55:36
阅读次数:
65
1、float a = 0.125f; double b = 0.125d; System.out.println((a - b) == 0.0); 代码输出结果是? A. true B.false 2、double c = 0.8; double d = 0.7; double e = 0.6; ...
分类:
编程语言 时间:
2020-05-28 23:55:09
阅读次数:
207
Integer的NullPointerException 学习包装类的时候看到这样一个问题: public class TestBox { Integer i; int j; public void go(){ j = i;//第七行 System.out.println(j); System.ou ...
分类:
其他好文 时间:
2020-05-28 23:53:29
阅读次数:
112
一、技术总结 题意就是给N个整数,将他们分成两组,要保证两组的整数数量之差最小,同时两个数组的差值最大。 简单思考一下便知,将两组平分即可,如果N是偶数就数量差为0,如果为奇数数量差为1,再将N个数字从小到大排列分组就可求得差值最大。 二、参考代码 #include<bits/stdc++.h> u ...
分类:
其他好文 时间:
2020-05-28 21:29:10
阅读次数:
55
Given a perimeter of 60, we can find two right triangles with integral length sides: [(10, 24, 26), (15, 20, 25)]. Complete the following function, wh ...
分类:
其他好文 时间:
2020-05-28 00:59:06
阅读次数:
86