今天写了一个SB代码,就是字符串“2014-04-03”转换为java.sql.Date.因为java.sql.Date extends
java.util.Date.所以一般的思路是先将String 变为java.util.Date,然后再创立java.sql.Date..代码如下:
Sim...
分类:
其他好文 时间:
2014-05-19 18:06:58
阅读次数:
204
NSUserDefaults可以存取一些短小的信息。比如存入再读出一个字符串到NSUserDefaults:NSString
*string = [NSString stringWithString @"hahaha"]; NSUserDefaults *ud =
[NSUserDefaults ....
分类:
其他好文 时间:
2014-05-19 17:26:08
阅读次数:
189
python:“蟒蛇”import py_compile
:编译模块,生成pyc文件,或者pyo文件;python -o -m py_compile hello.pypython 补充: 运算符:in/not
in,成员测试, is/not is,同一性测试,三重引号(docstring)的作...
分类:
编程语言 时间:
2014-05-19 17:02:49
阅读次数:
322
public class MyDateFormat { /** * 格式化时间 * @param
date * @param format * @return string */ public static String dateToStr...
分类:
编程语言 时间:
2014-05-19 16:36:00
阅读次数:
339
public interface IBankAccount
//只能加public修饰符,或者什么都不加 { void Playin(decimal money); //函数前不加任何修饰符号 bool
WithDrew(decimal money); ...
分类:
其他好文 时间:
2014-05-19 16:08:19
阅读次数:
253
vector::const_iterator result =
find(vector.begin(). vector.end(),search_value); 如果查找失败,分会end()
如果有两个,会返回哪一个的迭代器?int *reauslt = find(ia,ia+6,search_va...
分类:
编程语言 时间:
2014-05-19 15:15:33
阅读次数:
324
Context.javapackage edu.interpreter;public class
Context { private String input; private int output; public String getInput() {
return...
分类:
其他好文 时间:
2014-05-19 14:56:22
阅读次数:
322
域和静态方法不具有多态性:public class Test3 { public static
void main(String[] args) { Super sup = new Sub(); System.out.println(sup.field);
System.out.println...
分类:
其他好文 时间:
2014-05-19 14:28:59
阅读次数:
314
题目链接Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-...
分类:
其他好文 时间:
2014-05-19 14:10:25
阅读次数:
250
给定一个长的字符串string1和另一个较短的字符串string2,然后判断下较短的字符串string2中的所有字符是否都在string1中出现过。这个有4个解法第1种就是全部遍历一边,设string1的字符个数为len1,
string2的字符个数为len2, 且len2 2, b->3, c->...
分类:
其他好文 时间:
2014-05-19 11:52:12
阅读次数:
174