摘要: private void sort(List<SalaryHandle> list) { Collections.sort(list, new Comparator() { public int compare(SalaryHandle h1, SalaryHandle h2) { int resu 阅读全文
posted @ 2018-07-20 18:46 super朱墨 阅读(140) 评论(0) 推荐(0) 编辑
摘要: // 将Object转换为Double public static Double changeTypeD(Object obj) { try { if(obj!=null){ return new BigDecimal(Double.valueOf(obj + "")).setScale(2, Bi 阅读全文
posted @ 2018-07-12 10:14 super朱墨 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: Java读取txt文件内容。可以作如下理解: 1、首先获得一个文件句柄。File file = new File(); file即为文件句柄。两人之间连通电话网络了。接下来可以开始打电话了。 2、通过这条线路读取甲方的信息:new FileInputStream(file) 目前这个信息已经读进来内 阅读全文
posted @ 2017-04-26 18:09 super朱墨 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 有一个Map对象,这时候使用keySet()方法获取所有的key值,比如: Map map = new HashMap(); map.put(1, "a"); map.put(2, "b"); map.put(3, "c"); map.put(4, "d"); Set keys1 = map.key 阅读全文
posted @ 2017-04-26 16:01 super朱墨 阅读(3048) 评论(0) 推荐(0) 编辑
摘要: JS function document.onclick(){}报错Syntax error on token "function", delete this token function document.onclick() //任意点击时关闭该控件 //ie6的情况可以由下面的切换焦点处理代替 阅读全文
posted @ 2016-08-02 09:50 super朱墨 阅读(674) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-06-06 19:04 super朱墨 阅读(0) 评论(0) 推荐(0) 编辑
摘要: delphi中表示跳出的有break,continue, exit,abort, halt, runerror。 1、break 强制退出循环(只能放在循环中),用于从For语句,while语句或repeat语句中强制退出。 2、continue 用于从For语句,while语句或repeat语句强 阅读全文
posted @ 2016-05-21 10:31 super朱墨 阅读(236) 评论(0) 推荐(0) 编辑
摘要: if r>570 then SET_TT(1);//超出多少行就用excel导出类似数组用法:var ts: TStringlist;begin ts:=TStringlist.Create; ts.Add('select * from ...'); ts.Sorted := True; //需要先 阅读全文
posted @ 2016-05-20 18:04 super朱墨 阅读(432) 评论(0) 推荐(0) 编辑
摘要: (本文摘自scottpei的博客) over partition by与group by 的区别 今天看到一个老兄的问题, 大概如下: 查询出部门的最低工资的userid 号 表结构: D号 工资 部门 userid salary dept 1 2000 1 2 1000 1 3 500 2 4 1 阅读全文
posted @ 2016-05-20 09:26 super朱墨 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Delphi里有现成的函数可以实现日期加减,是在DateUtils单元里的。 function IncYear(const AValue: TDateTime; const ANumberOfYears: Integer = 1): TDateTime; // function IncMonth i 阅读全文
posted @ 2016-05-09 14:41 super朱墨 阅读(4194) 评论(0) 推荐(0) 编辑