题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telep...
分类:
其他好文 时间:
2015-05-22 14:55:29
阅读次数:
135
www.XXX.com/mod=titlebytiddefine('API_SALT_KEY', 'lizuofeng');$mod = $_GET['mod'];//所走的方法$pre_string = 'edit_';$function = $pre_string.$mod;$salt = md...
分类:
其他好文 时间:
2015-05-22 14:52:32
阅读次数:
116
Problem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same chara...
分类:
其他好文 时间:
2015-05-22 14:49:24
阅读次数:
100
1,equals@Test
public void test_equal(){
String a="1";
int b=1;
boolean result=a.equals(b);
System.out.println(result);
}原因:equals 比较时自动把转化为包装类型了
运行结果是:
false...
分类:
编程语言 时间:
2015-05-22 13:27:50
阅读次数:
129
在偶不知道第二种方法之前.偶费了好大劲才把这个问题解决.下面把这两个方法都帖出来,请大家批评指正.或有更好的办法也帖出来,一起交流第一种方法: string sql = "Report_proc"; SqlParameter[] paras ={ new SqlParameter("@deptno"...
分类:
其他好文 时间:
2015-05-22 13:22:21
阅读次数:
112
/** * Cookieの追加 * @return * @throws Exception */ private void addCookie(String name,String value){ Cookie cookie = new Cooki...
分类:
其他好文 时间:
2015-05-22 13:10:40
阅读次数:
106
登录用户名:密 码:$msg public class Person { public string Name { set;get;} public int Age { set; get; } public Person Father { ...
分类:
其他好文 时间:
2015-05-22 13:05:46
阅读次数:
94
/** * 向前推算时间,并转换成指定格式输出 * @param date 参照日期 * @param days 变动的天数 * @param daytype 返回的样式 eg: yyyy-MM-dd HH:mm:ss * @return */ public static String getBeforeDate(Date d...
分类:
其他好文 时间:
2015-05-22 11:49:02
阅读次数:
124
一、调用Android lint命令查找出没有用到的资源,并生成一个清单列表:
命令:lint –check “UnusedResources” [project_path] > result.txt
执行完之后会生成一个清单文件,内容如下:
二、使用代码自动删除无用的文件:public class DelAction
{
public static void main(String[...
分类:
移动开发 时间:
2015-05-22 11:43:20
阅读次数:
128
Pattern类的主要作用是进行正则规范的编写,而Matcher类主要是执行规范,验证一个字符串是否符合其规范。下面来通过具体例子了解一下:
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexDemo {
public static void main(String[...
分类:
其他好文 时间:
2015-05-22 11:35:54
阅读次数:
133