public static class CloneExtend { /// <summary> /// 深复制 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="sender"></param> /// <ret ...
分类:
其他好文 时间:
2017-01-20 11:07:43
阅读次数:
188
public class EmailConfig { public static readonly string ServerAddress = ConfigurationManager.AppSettings["ServerAddress"]; public static readonly str ...
分类:
其他好文 时间:
2017-01-20 11:07:19
阅读次数:
155
/// /// http连接基础类,负责底层的http通信 /// public class HttpService { public static bool CheckValidationResult(object sender, X509Certificate certificate, X509... ...
分类:
Web程序 时间:
2017-01-20 09:59:28
阅读次数:
259
public class AddressService extends Service { public static final String tag = "AddressService"; private TelephonyManager mTM; private MyPhoneStateLis... ...
分类:
其他好文 时间:
2017-01-20 07:17:47
阅读次数:
190
第一种方式:通过synchronized解决,性能下降 1 package singleton; 2 3 public class Singleton { 4 private Singleton() { 5 } 6 7 private static Singleton instance ; 8 9 ...
分类:
其他好文 时间:
2017-01-20 00:16:58
阅读次数:
219
1 /**************连接数据库部分********************/ 2 public static Connection conn(){ 3 Connection conn = null; 4 String driver = "com.mysql.jdbc.Driver"; ... ...
分类:
数据库 时间:
2017-01-20 00:09:41
阅读次数:
252
1、在控制台中的展示 2、用在web中会有很大的不同 1> html中的设置 使用ArtiInfo(参见views.py)而不是上面的page1,此外方法也没有括号 2> models.py 3> views.py 注意,上面html中使用的ArtiInfo不是models.py中定义的类,而是在v ...
分类:
其他好文 时间:
2017-01-20 00:03:45
阅读次数:
330
2017-1-19Activitypublic class MainActivity extends ListActivity { private boolean flag;//线程结束条件 public static final String ACTION_TEST_SERVICE = "com.... ...
分类:
其他好文 时间:
2017-01-19 23:10:39
阅读次数:
353
public class Index { public static void main(String[] args) { String s = "黄伟强"; try { // 编码(编码方式 GBK:国标 UTF-8:国际通用 ISO-8859-1:美洲 默认为当前项目的编码) byte[] b ... ...
分类:
编程语言 时间:
2017-01-19 21:47:14
阅读次数:
249