参考下面这篇文章:http://blog.csdn.net/steveguoshao/article/details/12576849http://blog.csdn.net/mingli198611/article/details/10062791上面这篇文章解释了为什么hashCode里面要用3...
分类:
其他好文 时间:
2015-02-06 16:25:17
阅读次数:
114
public class BoxingTest { @Test public void test1(){ String a = new String("1"); String b = new String("1"); Long c = 1...
分类:
编程语言 时间:
2015-02-06 16:24:41
阅读次数:
148
读完https://developers.google.com/protocol-buffers/docs/proto,有以下心得: 1 default value。bool的默认值是false,数值的默认值是0,enum的默认值是其第一个元素,string的默认值是空字符串。 ?2 tag id....
分类:
其他好文 时间:
2015-02-06 15:17:23
阅读次数:
135
解决U3D程序“按下休眠键时退出程序”的问题(官方解决方案)
更改AndroidManifest.xml中的标签,来包含标记
活动标签示例如下所示:-
android:label="@string/app_name"
android:configChanges="fontScale|keyboard|keyb...
分类:
编程语言 时间:
2015-02-06 15:04:18
阅读次数:
227
Gene and Gina have a particular kind of farm. Instead of growing animals and vegetables, as it is usually the case in regular farms, they grow strings. A string is a sequence of characters. Strings hav...
#region 排序获取集合 static List GetPagerWithGroup(string connectionString, string databaseName, string collectionName, IMongoQuery param, GroupByBuild...
分类:
数据库 时间:
2015-02-06 14:51:54
阅读次数:
194
String to DateTime // String to DateTime String MyString; MyString = "1999-09-01 21:34 PM"; //MyString = "1999-09-01 21:34 p.m."; //Depends on your r....
分类:
其他好文 时间:
2015-02-06 14:43:37
阅读次数:
136
/**客户端1、服务端点2、读取客户端已有的文件数据3、通过socket输出流发给服务端4、读取服务端反馈信息5、关闭**/import java.io.*;import java.net.*;class UploadClient{ public static void main(String[] ...
分类:
其他好文 时间:
2015-02-06 14:40:22
阅读次数:
102
sping中的RowMapper可以将数据中的每一行数据封装成用户定义的类. 我们在数据库查询中,如果返回的类型是用户自定义的类型(其实我们在数据库查询中大部分返回的都是自定义的类)则需要包装,如果是Java自定义的类型,如:String则不需要.如果sping与hibernate 相结合了,基本上...
分类:
移动开发 时间:
2015-02-06 14:39:57
阅读次数:
121
public static void main(String[] args) { HashMap map = new HashMap(); map.put("张三", "四川"); map.put("李四", "四川"); map.put("王五", "广东"); map.put("...
分类:
编程语言 时间:
2015-02-06 14:33:31
阅读次数:
214