![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Util
wubin3347
这个作者很懒,什么都没留下…
展开
-
mysql,Access,sqlite数据库连接
Access数据库简单操作: public static Connection getConn() throws Exception { Connection conn = null; try { Properties prop = new Properties(); prop.put("charSet"...原创 2011-10-24 09:55:13 · 199 阅读 · 0 评论 -
主键生成器
package com.appdev.bsf.fusioncharts.client; import java.net.InetAddress;import java.net.UnknownHostException;import java.util.Date; /** * 主键生成器。该类使用单例模式。 * */public class PKGen...原创 2011-10-28 16:35:26 · 248 阅读 · 0 评论 -
常用类型转换
package com.core.util; import java.text.SimpleDateFormat;import java.util.Date;import java.util.Random;import java.util.regex.Matcher;import java.util.regex.Pattern;import java....原创 2011-10-28 16:39:57 · 72 阅读 · 0 评论 -
字符串String操作类
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regardin...原创 2011-10-28 16:42:29 · 231 阅读 · 0 评论 -
载取字符串中的汉字
package com.appdev.test.server; import java.util.regex.Pattern; public class ChineseCharacter { public static void main(String[] args) {String str = "我是asdf中国人as sdfsf/.,';\\=[]...原创 2011-10-29 20:17:10 · 71 阅读 · 0 评论 -
UUID 产生码
package com.core.util; /** * UUID 产生码 * * @Created Time:Jan 4, 2009 9:30:29 PM */ public class UUID {public static String randomUUID() {String uuid = java.util.UUID.randomUUID(...原创 2011-10-29 20:17:26 · 100 阅读 · 0 评论 -
人民币(Rmb)数字转换大写(大写)
package com.test; public class RmbConvert { public String simpleToBig(double money) { if (money <= 0) { return "不能为负数"; } String result = ""; char[] hunit = { '拾', '佰...原创 2011-10-31 12:26:01 · 419 阅读 · 0 评论 -
Gwt Client截取字符串中的汉字
package com.appdev.bsf.common.client.util;/** * @author wubin E-mail:wubin3347@gmail.com * @version 创建时间:2011-11-1 下午3:12:45 * */public interface MatchResult { int start(); int ...原创 2011-11-01 15:36:36 · 98 阅读 · 0 评论