`
zdk8105
  • 浏览: 36396 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
 SET LINESIZE 2000 SET TERM OFF VERIFY OFF FEEDBACK OFF PAGESIZE 9999SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFFspool emp.xlsxselect '"employee_id","last_name","first_name","salary"' from dual union all select empno || ',"' || ename || '",&qu ...
1. 比较器实现 /** * TreeMap比较器(根据键值结合排序) * */public class ByValueComparator  implements Comparator<Entry<String, Map<String,String>>>{  private Map<String,Integer> bankCodeMap = new HashMap<String,Integer>(); private Map<String,Integer> valueMap = new HashMap<Strin ...

TreeMap比较器实现

    博客分类:
  • java
一、将TreeMap中指定元素排在集合前面   1. 比较器实现 /** * TreeMap比较器 * */public class MyComparator implements Comparator<String>{  private Map<String,Integer> bankCodeMap = new HashMap<String,Integer>(); private int tempWeight = 0;     public MyComparator(){       bankCodeMap.put("ICBC" ...
BC3已经出来很长时间了,比较文件差异用起来很方便。但却不知道怎样来比较两个class文件,一打开class文件的比较窗口,就是一堆16进制的串串,谁看的懂里面什么差异!不过还好,官网提供了扩展比较, windows下的官网下载地址:http://www.scootersoftware.com/download.php?zz=kb_moreformats_win linux扩展的官网下载地址:http://www.scootersoftware.com/download.php?zz=kb_moreformats_nix进入页面点 Download All就行了(但有时候点Download ...
答案一: 前6位数字为发卡银行识别号(BIN),由ISO国际组织统一制定。 最后一位是校验位,由前面组成卡号的十多位数字(常见的ISO卡号有13位、16位、19位)通过特定算法计算。 前6位和最后一位之间的数字为金融机构自定 ...
在网上查了一下,去除重复数据有两种情况: 1、部分字段重复,对于这种情况可这样做: (1)create table 临时表 as select a.字段1,a.字段2,MAX(a.ROWID) dataid from 正式表 a GROUP BY a.字段1,a.字段2; (2) delete from 表名 a     where a.rowid !=     (     select b.dataid from 临时表 b     where a.字段1 = b.字段1 and     a.字段2 = b.字段2     ); (3)commit; 我不想删 ...
1.jdbc公用类 2.windchill开发公用类
1.调用 store: new Ext.data.JsonStore({       fields: ["confType","confName","optionName","isdefault"],       proxy: {                    type: 'ajax',                    url:/*'groupGrid.json'*/rootPath+'servlet/midearest/gplm/wo/abroadOrderConf',               ...
1.继承WTObject @GenAsPersistable(  superClass = WTObject.class,   properties = {   @GeneratedProperty(name = "note", type = String.class, constraints = @PropertyConstraints(upperLimit = 500)),   ......   @GeneratedProperty(name = "str1", type = String.class)  },  foreignKeys = { ...

java 生成单号

    博客分类:
  • java
  import java.text.DecimalFormat; import java.text.Format; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; import java.util.Iterator; import java.util.Map; ...
1.更新模型字段的命令      addColumns -u
Eclipse提供了一个可扩展插件的开发系统。这就使得Eclipse在运行系统之上可以实现各种功能。这些插件也不同于其他的应用(插件的功能是最难用代码实现的)。拥有合适的Eclipse插件是非常重要的,因为它们能让Java开发者们无缝的开发基于J2EE和服务的应用程序。Eclipse的插件也能帮助他们开发不同应用架构上的程序。 下面列出来的是25个最好的免费Eclipse插件,可以让开发者更高效的工作 。 提高代码质量的插件 1. FindBugs FindBugs可以帮你找到Java代码中的bug,它使用Lesser GNU Public License的自由软件许可。 2. ...
public String send(String phone, String content, String sendtime) { String urlStr = "http:// 113.106.90.218/SIAdmin/submit.do"; String id = "账号";//账号 String password = "密码"
  1.正则表达式限制文本框只能输入正数,负数,小数 onkeyup="value=value.replace(/[^\-?\d.]/g,'')"   2.正则表达式限制文本框只能输入正数,小数 onkeyup="value=value.replace(/[^\d.]/g,'')"
一直对Servlet的几种页面跳转方式,理解的糊里糊涂的,今天在网上搜了一把,找到一遍比较好的,记下来,以后看看。 跳转分两部分,一是发生在servlet,一是在JSP,其实JSP也就是servlet,不过还是有点差异滴。 Servlet: 当然,在servlet中,一般跳转都发生在doGet, doPost等方法里面。 1) redirect 方式 response.sendRedirect("/a.jsp"); 页面的路径是相对路径。sendRedirect可以将页面跳转到任何页面,不一定局限于本web应用中,如: response. ...
Global site tag (gtag.js) - Google Analytics