首先看到的是这是一个internal的类,怪不得没见有人这么写过呢! 研究一番之后,终于弄清楚这货是干嘛的了:这个类的作用就是缓存一个StringBuilder对象,给那些并不是要做很多Append操作的地方使用的,我们也看到private const int MAX_BUILDER_SIZE =...
分类:
系统相关 时间:
2015-02-09 00:42:08
阅读次数:
281
--修改存储过程alter proc proc_get_studentasselect * from student;asp.net 的事务就是针对数据层来处理的呀!没有数据处理不能使用事务 -------------------------------------string sql = "upd...
分类:
Web程序 时间:
2015-02-09 00:38:35
阅读次数:
148
SYSASSYSDBA@ORCL>SHOWPARAMETER;NAMETYPEVALUE-----------------------------------------------------------------------------O7_DICTIONARY_ACCESSIBILITYbooleanFALSEactive_instance_countintegeraq_tm_processesinteger0archive_lag_targetinteger0asm_diskgroupsstr..
分类:
其他好文 时间:
2015-02-08 23:24:47
阅读次数:
198
判断两个字符串的编辑距离是不是1.两个字符串距离是1的可能性:1)两个字符串长度相等:s="abc",t="aec";2)两个字符串长度相差1(两种情况):s="abc",t="abce";或s="abc",t="aebc";bool isOneEditDistance(string s, stri...
分类:
其他好文 时间:
2015-02-08 23:15:23
阅读次数:
203
转:http://fangjie.info/?p=417#more-417一、WebView.setWebViewClient(new MyWebViewClient());1.public boolean shouldOverrideUrlLoading(WebView view, String ...
分类:
移动开发 时间:
2015-02-08 23:13:42
阅读次数:
341
找到最多含有两个不同字符的子串的最长长度。例如:eoeabc,最长的是eoe为3,其他都为2.例如:string s="aqaqedadcdccd";使用一个map fmap记录每个字符出现的个数,详解在程序中注释。int lengthOfLongestSubstringTwoDistinct(st...
分类:
其他好文 时间:
2015-02-08 23:12:12
阅读次数:
150
StringBuilder、StringBuffer和String三者的联系和区别1. String 类 String的值是不可变的,这就导致每次对String的操作都会生成新的String对象,不仅效率低下,而且大量浪费有限的内存空间。 String a = "a"; //假设a指向地址0x000...
分类:
其他好文 时间:
2015-02-08 23:04:41
阅读次数:
209
两个线程交替打印 1.使用synchronized,wait,notify关键字实现 package com.hzm.test;/* * 两个线程交替打印 */public class Communication { public static void main(String[] args)...
分类:
编程语言 时间:
2015-02-08 19:26:20
阅读次数:
140
#region 反序列化 /// /// 反序列化
/// /// 类型
/// XML字符串
/// public static object Deserialize(Type type, string xml)
{ try { using (StringReader sr = new Strin...
分类:
其他好文 时间:
2015-02-08 18:09:23
阅读次数:
220
主要注意分析几种特殊的输入:
1 不规则的输入,但是有效:"-3924x8fc","+432"
2 无效格式,"++c","++1"
3 数据溢出
其中数据溢出的判断:
To deal with overflow, inspect the current number before multiplication. If the current number is greater than...
分类:
其他好文 时间:
2015-02-08 16:57:54
阅读次数:
125