/** * 传入邮箱域名所有变为小写,然后拼接前缀返回 *Summary: * emailDomainTransform() * @param domain * @return * @throws Exception */ public static String emailDomain...
分类:
其他好文 时间:
2014-07-03 09:08:38
阅读次数:
191
45.error和exception有什么区别?答案:Error表示系统级的错误和程序不必处理的异常,我们无法处理它。 Exception表示是可以捕捉或者需要程序进行处理的异常。47.abstract class和interface有什么区别?答案:一个只能继承一个抽象类,但却可以实现多个接口。抽...
分类:
其他好文 时间:
2014-07-02 23:22:44
阅读次数:
182
public static string HashPassword(string password) { if (password == null) { throw new ArgumentNul...
分类:
Web程序 时间:
2014-07-02 23:01:49
阅读次数:
292
设备资源管理系统-过滤器 添加过滤器 操作: 1、创建一个类CheckLogonUserFilter,实现javax.servlet.Filter 2、获得方法: public void init(FilterConfig arg0) throws ServletExceptio...
分类:
其他好文 时间:
2014-07-02 21:00:50
阅读次数:
190
一、 PUll解析Xmlpublic static List xmlParser(InputStream xml) throws Exception { List persons=null; Person p=null; XmlPullParser p...
分类:
移动开发 时间:
2014-07-02 20:21:15
阅读次数:
205
public Object deepClone() throws IOException, ClassNotFoundException{ //将对象写到流里 ByteArrayOutputStream bos = new ByteArrayOutputStream()...
分类:
编程语言 时间:
2014-07-01 18:22:15
阅读次数:
178
import java.io.*;import java.util.*;public class SortTest{ public static void main(String args[]) throws IOException, ClassNotFoundException { ...
分类:
编程语言 时间:
2014-07-01 18:03:24
阅读次数:
322
An “Oops” is what the kernel throws at us when it finds something faulty, or an exception, in the kernel code. It’s somewhat like the segfaults of use...
分类:
其他好文 时间:
2014-07-01 17:25:43
阅读次数:
265
//方法描述:根据会员名称和页容量分页查询代理人public List findUserByPage(int page,int pageSize, String userName)throws Exception {Session session = sessionFactory.getCurren...
分类:
系统相关 时间:
2014-07-01 16:25:46
阅读次数:
276
在输出的格式为UTF-8的格式,但是打开CSV文件一直为乱码,后来参考了这里的代码,搞定了乱码问题,原文请参考:http://hbase.iteye.com/blog/1172200 private static void writeBcp( ) throws IOException ...
分类:
编程语言 时间:
2014-07-01 14:16:46
阅读次数:
274