- 博客(3)
- 收藏
- 关注
原创 去除数组中的空值
public static void main(String[] args) { //去除数组前的逗号[,]。原数组为[,1,2,3,4] 生成的新数组为[1,2,3,4] String str = ",1,2,3,4"; List<String> delWfProcessIdList = Arrays.asList(str.split(...
2019-11-07 18:28:26
1802
原创 oracle中关于处理小数点位数的几个函数,取小数位数及转换为货币格式
1.四舍五入,取小数点后n位 select round(1.2345,3) from dual; 结果:1.235 2.保留两位小数,只舍 select trunc(1.2345,2) from dual; select trunc(1.2399,2) from dual; 结果:1.23 1.23 3.取整数 返回大于或等于x的最大整数 select ceil(23.33) from ...
2019-07-01 17:13:57
1018
原创 JAVA获取当前时间的前一天或者前几天时间,前一个月,前一年
核心:使用Calendar的add(int field, int amount)方法 public static void main(String[] args) { /** 获取当前日期的前一天、月、年 */ Calendar ca = Calendar.getInstance();//得到一个Calendar的实例 ca.setTime(new Date()); //设置时间为当前时间 ...
2018-12-29 10:28:27
2423
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人