<?php//单例模式连接数据库class pzhang{ static private $instance; private static $config; private $dbase = array( 'host' => 'localhost', 'username' =>'root', 'p ...
分类:
数据库 时间:
2018-10-09 12:20:20
阅读次数:
269
package cn.zz; /** * * @author Administrator 饿汉式: class single{private static Single s=new Single(); private Single(){ } public static getInstance(){ ...
分类:
编程语言 时间:
2018-10-07 14:38:39
阅读次数:
144
public static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); private static boolean isOverlap(String startdate1, String enddat ...
分类:
编程语言 时间:
2018-10-05 23:05:05
阅读次数:
664
private static string base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; private static int[] base64DecodeChars =... ...
AsnycTask 原理就是“线程池 + Handler”的组合。 AsyncTask 里的线程池: private static final int CPU_COUNT = Runtime.getRuntime().availableProcessors(); private static fin ...
分类:
其他好文 时间:
2018-09-28 12:44:19
阅读次数:
269
import java.net.*;import java.io.*;public class simpleServer{private static ServerSocket serverSocket;private static listenClient listen;public static ...
分类:
编程语言 时间:
2018-09-28 12:40:38
阅读次数:
154
public class TimeZoneChangeInterceptor extends HandlerInterceptorAdapter { public static final String DEFAULT_PARAM_NAME = "_timeZone"; private static ...
分类:
编程语言 时间:
2018-09-26 12:58:44
阅读次数:
253
(一)看程序 1 #include <iostream> 2 #include <string.h> 3 #include <unistd.h> 4 5 using namespace std; 6 7 class Person { 8 private: 9 static int cnt; /*静态 ...
分类:
编程语言 时间:
2018-09-22 18:18:22
阅读次数:
157
示例: public class CustomThreadPoolExecutor { //private static volatile ThreadPoolExecutor pool= null; private static volatile ThreadPoolExecutor pool = ...
分类:
编程语言 时间:
2018-09-17 16:17:31
阅读次数:
179
一、例子 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading. ...
分类:
编程语言 时间:
2018-09-15 16:34:23
阅读次数:
143