码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
LeetCode[Hash Table]: Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).  For example,  S = "ADOBECODEBANC"  T = "ABC"  Minimum window is "BANC"...
分类:Windows程序   时间:2015-02-04 21:50:22    阅读次数:221
三层登录实战C#版
namespace LoginModel { //数据库表的映射 public class UserInfo { private string username; public string UserName { get { return username...
分类:Windows程序   时间:2015-02-04 21:49:40    阅读次数:299
关于No resource found that matches the given name
在Android开发中,有时候会遇到error: Error: No resource found that matches the given name这样的错误①倘若后面跟着的是at 'text' with value '@string/XXX'则只需找到点击,将XXX添加即可这是我们点击下方的...
分类:其他好文   时间:2015-02-04 21:45:55    阅读次数:156
JAVA学习--反射构造器操作
1 @Test 2 public void test1() throws Exception{ 3 String className = "com.atguigu.java.Person"; 4 Class clazz = Class.forName(cla...
分类:编程语言   时间:2015-02-04 21:41:52    阅读次数:118
如何自定义一个异常类
如何自己定义一个异常类来管理相应的异常?1) 为这个找一个近似的类作为父类。2) 在该类中编写两个构造器:a) 默认构造器;b) 带String message参数的构造器且在该构造器中使用 super(message); 语句 来调用父类的构造器完成异常原因的更改。以下实例为,创建一个小猫对象,....
分类:其他好文   时间:2015-02-04 21:41:06    阅读次数:203
How to append files to a .tar archive using Apache Commons Compress?(转)
I created a copy of the tar archive and copied to entire content to it. Then I delete the old tar archive.public void appendFileInTarArchive(String ta...
分类:移动开发   时间:2015-02-04 20:10:30    阅读次数:197
spring mvc 避免IE执行AJAX时,返回JSON出现下载文件
springmvc避免IE执行AJAX时,返回JSON出现下载文件controller@RequestMapping(value="/com/testjson",produces={"text/plain;charset=UTF-8"}) public@ResponseBodyStringtestjson(HttpServletRequestrequest){ Map<String,Object>m=newHashMap<String,Object>(); ...
分类:编程语言   时间:2015-02-04 18:57:00    阅读次数:825
LeetCode Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BAN...
分类:Windows程序   时间:2015-02-04 18:44:33    阅读次数:199
LeetCode—*Valid Number
Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true 主要就是判断一个字符串是不是一个数字,这个题目不是很难,主要是要把所有的情况理清楚 首先有一些情况是允许的 1....
分类:其他好文   时间:2015-02-04 18:42:37    阅读次数:130
又是正则
0x00 level: 0x040x01 code:1 // (lrrq或rq或date)或(yqsl或sl)与(yqdm或ypmc)与 (ysgk或ysdm)与sum与group2 3 String regex = "((?=.*(lrrq|rq|date))|(?=.*(yq...
分类:其他好文   时间:2015-02-04 18:30:22    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!