Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac", retu...
分类:
其他好文 时间:
2015-02-24 15:08:54
阅读次数:
164
原文地址:http://hi.baidu.com/baowup/blog/item/3a27465c86d71546faf2c066.html/cmtid/de1ef3f0de7554a0a40f52f7string类的构造函数:string(constchar*s); //用c字符串s初始化...
分类:
其他好文 时间:
2015-02-24 15:06:01
阅读次数:
200
2.4 类的属性 属性是一种特殊的“字段”。 先来看一个用于表示学生信息的类Student:class Student{ public String Name; //姓名 public DateTime Birthday; //生日 public int Age; //年龄} Stude...
分类:
其他好文 时间:
2015-02-24 15:04:39
阅读次数:
119
在Android中,活动是一个界面,当需要在界面之间相互切换的时候,需要用到Intent(意图)进行消息传递。使用startActivity(Intent)函数启动另一个活动。Bundle是一个key-Value类,可以用他携带信息。Bundle.putString("key","String")方法和Bundle.getString("key")方法放入..
分类:
移动开发 时间:
2015-02-24 13:58:57
阅读次数:
237
publicclasstest2{
/**
*验证码学习
*@paramargs
*@throwsIOException
*/
publicstaticvoidmain(String[]args)throwsIOException{
char[]ch="ABCDEFGHIGKLMNQRSTUVWXYZabcdefghigklmnopqrstuvwxyz0123456789".toCharArray();
Randomrand=newRandom();
intindex=0;..
分类:
编程语言 时间:
2015-02-24 13:57:36
阅读次数:
153
publicclassTestBLOB{staticStringurl="jdbc:oracle:thin:@localhost:1521:orcl";staticStringdriver="oracle.jdbc.driver.OracleDriver";staticStringuserName="scott";staticStringpwd="tiger";publicstaticvoidmain(String[]args){try{//addBLOB();readBLOB();}catch(ClassN..
分类:
数据库 时间:
2015-02-24 13:57:30
阅读次数:
190
java中的有各种map1,那么效率最高的一种遍历方法如下:TreeMap<String,long>map=newTreeMap<String,long>();
Entry<Stringlong>peek;//该类型的句柄只能指向map中的一个键值对
//若将泛型指明,那么下面直接返回对应类型,否者返回Object
Iterator<Entry..
分类:
编程语言 时间:
2015-02-24 13:56:11
阅读次数:
141
题目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”.Note...
相信,大家都有遇到过在传入一个中文string,debug自己的每一行代码时,都发现始终是没有乱码的(即:排除了,源码文件的编码格式是没问题的),但是数据进入数据库之后就是乱掉了。 那么很明显问题就出现在数据写入数据库的过程之中了(数据库设置的编码格式也是对的情况下)。要是你SSH框架或者SS...
分类:
数据库 时间:
2015-02-24 13:48:00
阅读次数:
176
Js的substring和C#的Substring的作用都是从一个字符串中截取出一个子字符串,但它们的用法却有非常大的不同,下边我们来比較看看:Js的substring语法:程序代码String.substring(start, end)说明:返回一个从start開始到end(不包括end)的子字符...
分类:
Web程序 时间:
2015-02-24 13:44:30
阅读次数:
108