1.parse()是SimpleDateFomat里面的方法,你说的应该是parseInt()或parsefloat()这种方法吧,顾名思义 比如说parseInt()就是把String类型转化为int类型。如 String a= "123";int b = Integer.parseInt(a);...
分类:
编程语言 时间:
2015-04-28 11:17:53
阅读次数:
124
c++const char *c_str();c_str()函数返回一个指向正规C字符串的指针常量, 内容与本string串相同.(其实它指向的是string对象内部真正的char缓冲区),所以返回const,以防止用户的修改。这是为了与c语言兼容,在c语言中没有string类型,故必须通过stri...
分类:
编程语言 时间:
2015-04-28 11:15:07
阅读次数:
128
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "username", DateTime.Now, DateTime.Now.AddDays(365), true, string.Form...
分类:
其他好文 时间:
2015-04-28 11:13:31
阅读次数:
201
OGNL对象图导航语言,类似于el表达式,strut的底层就是用这个写的在导入struts-core的时候会导入ognl.jarpublic class Test { public static void main(String[] args) throws OgnlException { ...
分类:
其他好文 时间:
2015-04-28 11:12:14
阅读次数:
141
String to Integer问题:Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please d...
分类:
其他好文 时间:
2015-04-28 11:08:30
阅读次数:
117
DP应用:KMP字符串匹配算法,解决POJ 3461以及hihoCoder 1015
分类:
其他好文 时间:
2015-04-28 11:06:48
阅读次数:
168
1. Framework.QueryInfo info1 = new Framework.QueryInfo(); //string Sql = Holworth.Utility.Utility.EntityRowMapper.getSql("//data//ValueAtRiskCalculat....
分类:
数据库 时间:
2015-04-28 11:03:51
阅读次数:
153
文件上传jsp中文件上传案例fileaction中@Override public String execute() throws Exception { return SUCCESS; }配置xml,记得在struts.xml中导入这个xml, 是修改默认文件上传大小限制 ...
分类:
Web程序 时间:
2015-04-28 11:02:15
阅读次数:
214
孙广东 2015.4.27游戏中测试人员在测试的时候,我们很希望能他们捕捉到当时的问题瞬间,而不是简单的用语言描述。账号Unity提供了这个游戏截屏的功能, 现在我们就来实现一下这个东东吧。Application.CaptureScreenshotstatic void CaptureScreenshot(string filename, int superSize = 0); 文件默认被保存...
分类:
其他好文 时间:
2015-04-28 09:44:05
阅读次数:
174
classhelloword{ //这是main方法他是程序的入口 publicstaticvoidmain(String[]args) {//java实现99乘法表 for(inti=1;i<10;i++) { for(intj=1;j<i+1;j++) {if((i==3&&j==2)||(i==4&&j==2)) { System.out.print(j+"*"+i+"="+j*i+""); } else ..
分类:
编程语言 时间:
2015-04-28 02:07:54
阅读次数:
160