/** * Created by rabbit on 2014-5-12. */ public
class HalfSerach { public static void main(String[] args) { int [] arr =
{3,6,7,9,11,22,35};...
分类:
编程语言 时间:
2014-05-17 03:14:25
阅读次数:
294
1 public string ByteToString(byte[] inputBytes) 2 {
3 StringBuilder temp = new StringBuilder(2048); 4 foreach (byte tempByte in
inputBytes) 5...
分类:
其他好文 时间:
2014-05-17 01:39:05
阅读次数:
255
题目描述Elenore has a list of strings that she wants to
put in a file. She could just put them all into a file in order, but she wants
to minimize the siz...
分类:
其他好文 时间:
2014-05-17 01:33:55
阅读次数:
257
1import java.security.MessageDigest;import
java.security.NoSuchAlgorithmException;public class MD5 { // MD5変換 public static
String Md5(String st...
分类:
其他好文 时间:
2014-05-17 01:01:56
阅读次数:
215
一、日期转换为字符串1.日期以特定的格式输出: //
创建日期并转换为yyyy-MM-dd格式_(MM一定要大写,以免与hh:mm:ss中的mm冲突) SimpleDateFormat sdf = new
SimpleDateFormat("yyyy-MM-dd"); String dat...
分类:
编程语言 时间:
2014-05-17 00:05:30
阅读次数:
331
1.google2.application->application
framework->libraries(调用关系)3.strings.xml 是全局字符串的配置文件4.ADT(Android Development
Tools):其中DDMS是测试插件5.Android DDMS 中的日志输...
分类:
移动开发 时间:
2014-05-16 23:16:17
阅读次数:
311
public static string GetHttpResponse(string url) {
string content = ""; // Create a new HttpWebRequest object.Make sure that // a
default proxy is se....
分类:
其他好文 时间:
2014-05-16 21:43:22
阅读次数:
360
状况描述:打包安装后,如果删除安装目录中的某个文件,这时从桌面快捷方式启动软件系统会自动运行修复程序,此时因为路径问题会报出“错误 1001
在初始化安装时发生异常xxx”的异常。(前提是你的安装部署中加入了“自定义操作”,并为其传值)。查找原因原来是“自定义操作”中CustomActionData...
分类:
Web程序 时间:
2014-05-16 21:37:17
阅读次数:
353
一次过 1 public class Solution { 2 public String
countAndSay(int n) { 3 if (n <= 0) return ""; 4 int i = 1; 5 String current
...
分类:
其他好文 时间:
2014-05-16 21:27:59
阅读次数:
267
Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique longes...
分类:
其他好文 时间:
2014-05-16 21:15:37
阅读次数:
454