M:上回说的多线程的单例模式会了?z;略懂M:写一个吧package 单例模式;public class Singleton { private static Singleton instance=null; private Singleton() { Sys...
分类:
编程语言 时间:
2014-06-26 21:04:34
阅读次数:
307
题目是从http://www.cnblogs.com/TomXu/archive/2012/02/10/2342098.html看到的。答案参考了文章的评论,也有自己的一些改进。1.找出数字数组中最大的元素(使用Mach.max函数)Math.max.apply(null,[1,2,3]);2.转化...
分类:
Web程序 时间:
2014-06-26 20:08:41
阅读次数:
337
来看下书上的解释:Javascript的关键字null是一个特殊的值,它表示“无值”。null常常被看作对象类型的一个特殊值,即代表“无对象”的值。null是个独一无二的值,有别于其他所有的值,如果一个变量的值为null,那么就说明它的值不是有效的对象、数组、数字、字符串和布尔值。当null用户布尔...
分类:
其他好文 时间:
2014-06-26 18:28:36
阅读次数:
178
/************真与假************//*C语言中:真(非0)、假(0)* Java、C#中:真(true)、假(false)* JavaScript中:真(非0、true、非null)、假(0、false、null)*/var x,y,z;x=2;if(x){document....
分类:
编程语言 时间:
2014-06-26 17:41:57
阅读次数:
188
6. Examine the structure of the SHIPMENTS table:name Null TypePO_ID NOT NULLNUMBER(3)PO_DATE NOT NULLDATESHIPMENT_DATE NOT NULLDATESHIPM...
分类:
其他好文 时间:
2014-06-26 17:22:31
阅读次数:
1580
Javascript的基本数据类型中有undefined和null两种只有一个值得特殊数据类型。其中undefined表示未被初始化,不是为声明。而null表示一个空对象指针,而这也是使用typeof检测null返回”object”的原因。undefined表达的是通过var声明了变量,但没有显示的...
分类:
编程语言 时间:
2014-06-26 16:43:53
阅读次数:
224
9. Which statement is true regarding the INTERSECT operator?A. It ignores NULL values.B. Reversing the order of the intersected tables alters the resu...
分类:
其他好文 时间:
2014-06-26 16:03:20
阅读次数:
161
private String mResult = null;
private String mProvinceName; //省份
private String mChCityName; //城市
private int GET_CITY_SUCCESS = 1;
private int GET_CITY_FAILURE = 2;
//...
分类:
其他好文 时间:
2014-06-26 13:38:07
阅读次数:
267
第一步:创建项目导入jar包
第二步:建表:
CREATE TABLE `person` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`NAME` varchar(10) DEFAULT NULL,
`GENDER` int(10) DEFAULT NULL,
`ADRESS` varchar(50) DEFAULT NULL,
...
分类:
其他好文 时间:
2014-06-26 10:11:36
阅读次数:
216
if( (so_pid=fork())
#include
#include
#include
#include
#include
static pid_t so_pid;
static void chld_wait( int signo )
{
waitpid( so_pid, NULL, 0 );
fprintf(stderr, "父进程[%d]已成...
分类:
其他好文 时间:
2014-06-26 07:15:33
阅读次数:
179