代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/196814/8058858
m max.m
%列状数据最大值
%例如
% A=[11 4 0.2;22 3 0.5;0 3 0.4];
% max(A)
%
%MAX Largest component.
% For vectors, MAX(X) is the largest element in X. For matrices,
% MAX(X) is a row vector containin
www.eeworm.com/read/196814/8058918
m diff.m
function X = diff(X,order,dim)
%1.数值差分
% 对向量n维X,diff(X)返回[X(2)-X(1) X(3)-X(2) ... X(n)-X(n-1)]
% 例 x=[1 3 8];diff(x)
%
%2.符号导函数
% diff(s)符号表达式s的导数.
% diff(s,v)符号表达式s关于变量v的导数.
www.eeworm.com/read/396970/8081393
cpp main.cpp
/********************************************************************
created: 2006/07/20
filename: Main.cpp
author: 李创
http://www.cppblog.com/converse/
purpose: Singleton
www.eeworm.com/read/332973/12714233
java connectionpoolb.java
package ooad.singleton;
public class ConnectionPoolB {
private static ConnectionPoolB pool;
private ConnectionPoolB(){}
public static synchronized ConnectionPoolB getPool(){
if(pool=
www.eeworm.com/read/332973/12714236
java connectionpool.java
package ooad.singleton;
public class ConnectionPool {
private static ConnectionPool pool=new ConnectionPool();
private ConnectionPool(){}
public static ConnectionPool getPool(){
retu
www.eeworm.com/read/144672/12777036
txt 变态级java程序员面试32问.txt
第一,谈谈final, finally, finalize的区别。
答案 final—修饰符(关键字)如果一个类被声明为final,意味着它不能再派生出新的子类,不能作为父类被继承。因此一个类不能既被声 明为 abstract的,又被声明为final的。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为final的变量必须在声 明时给定初值,而在以 ...
www.eeworm.com/read/144598/12782533
java staticprint.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/144598/12782539
java staticspool.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/244945/12829227
m min.m
%列状数据最小值
%例如
% A=[11 4 0.2;22 3 0.5;0 3 0.4];
% min(A)
%
%MIN Smallest component.
% For vectors, MIN(X) is the smallest element in X. For matrices,
% MIN(X) is a row vector contain