1 Date date=new Date();2 DateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");3 String time=format.format...
分类:
编程语言 时间:
2015-06-15 21:42:32
阅读次数:
152
SharedPreferences是Android中存储简单数据的一个工具类。可以想象它是一个小小的Cookie,它通过用键值对的方式把简单数据类型(boolean、int、float、long和String)存储在应用程序的私有目录下(data/data/包名/shared_prefs/)自己.....
分类:
移动开发 时间:
2015-06-15 20:26:42
阅读次数:
149
使用spring的mvc,直接将页面参数绑定到对象中,对象中有属性为Date时会报错,此时需要处理下。同样的,其他的需要处理的类型也可以用这种方法。在controller中加入代码 @InitBinder protected void initBinder(HttpServletReque...
分类:
编程语言 时间:
2015-06-15 20:09:53
阅读次数:
134
The numbers of string functions for sql server 2008(R2) are 23.1) int ASCII(Char|varchar) :Returns the ASCII code value of the leftmost character of a...
分类:
数据库 时间:
2015-06-15 20:07:45
阅读次数:
150
播放背景音乐 @param {String} url 声音路径@param {Boolean} loop 是否循环播放cc.audioEngine.playMusic( url , loop );停止背景音乐@param {Boolean} releaseData 是否释放声音数据,默认为false...
Problem Description
It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string....
分类:
其他好文 时间:
2015-06-15 18:52:24
阅读次数:
106
一、GuavaGoogle的基于java1.6的类库集合的扩展项目,包括collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O等等. 这些高...
分类:
移动开发 时间:
2015-06-15 18:36:06
阅读次数:
182
有这样一个场景存在一个model类如果User,这里省略了getter/setter方法class User { String name; String uuid; Long created; Long updated; Attr attr;}class Attr { ...
分类:
Web程序 时间:
2015-06-15 18:35:26
阅读次数:
139
几个经常用到的字符串的截取string str="123abc456";int i=3;1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i);2 去掉字符串的前i个字符: str=str.Remove(0,...
for (int i = 0; i < dtUserAndAgentRelation.Rows.Count; i++ ) { strAgentID += string.Format("'{0}',", Convert.ToStrin...
分类:
数据库 时间:
2015-06-15 18:15:50
阅读次数:
132