Java中对Map(HashMap,TreeMap,Hashtable等)的排序时间 
首先简单说一下他们之间的区别: HashMap: 最常用的Map,它根据键的HashCode 
值存储数据,根据键可以直接获取它的值,具有很快的访问速度。HashMap最多只允许一条记录的键为Null(多条会覆盖);...
                            
                            
                                分类:
编程语言   时间:
2014-05-08 13:44:25   
                                阅读次数:
333
                             
                    
                        
                            
                            
                                c# 获取字符串中的数字 /// /// 获取字符串中的数字 /// /// 字符串 /// 数字 
例子1: public static decimal GetNumber(string str) { decimal result = 0; if (str 
!= null && str != str...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 13:32:21   
                                阅读次数:
347
                             
                    
                        
                            
                            
                                1:默认初始化如果对类中的变量不进行初始化,系统则会初始化变量为对应的值 比如int = 0, 
bool = fase String = null;2:手动初始化变量private int age = 23;3:初始化块{ id = 201245; age 
= 23;}4:构...
                            
                            
                                分类:
编程语言   时间:
2014-05-08 12:57:43   
                                阅读次数:
361
                             
                    
                        
                            
                            
                                困惑一:先看一个例子:function test(){
	message = "hi";
}
test();
alert(message);会输出字符串“hi"在函数内部使用var定义的变量是局部变量,省略var操作符的变量是全局变量。困惑二:alert(undefined == null)结果是”true"我们知道在js中分为基本类型和引用类型,基本类型包括number、string、boole...
                            
                            
                                分类:
编程语言   时间:
2014-05-07 23:20:30   
                                阅读次数:
361
                             
                    
                        
                            
                            
                                -- Create table
create table TECHNOLOGYCOMPANY
(
  ID              VARCHAR2(32) default SYS_GUID() not null,
  FLOWID          VARCHAR2(50),
  CONPANYID       NUMBER,
  ISCOMMUNICATION VARCHAR2(10)
)
...
                            
                            
                                分类:
数据库   时间:
2014-05-07 23:18:29   
                                阅读次数:
455
                             
                    
                        
                            
                            
                                很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
                            
                            
                                分类:
其他好文   时间:
2014-05-07 22:26:08   
                                阅读次数:
951
                             
                    
                        
                            
                            
                                static BOOL flag=NO;
    
    
    dispatch_queue_t myQueue=dispatch_queue_create("identifier", NULL);
    
    dispatch_async(myQueue, ^{
        
        for (int i=0; i
            NSLog(@"...
                            
                            
                                分类:
编程语言   时间:
2014-05-07 21:37:21   
                                阅读次数:
305
                             
                    
                        
                            
                            
                                Explain的type显示的是访问类型,是较为重要的一个指标,结果值从好到坏依次是:system 
> const > eq_ref > ref > fulltext > ref_or_null > index_merge 
> unique_subquery > index_subquery > r...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 21:26:56   
                                阅读次数:
282
                             
                    
                        
                            
                            
                                建立数据库: mysql>create database test; 
//建立一个名为"test"的数据库建立数据库表: mysql> create table test -> (name char(16) not 
null, -> passwd...
                            
                            
                                分类:
数据库   时间:
2014-05-07 21:22:19   
                                阅读次数:
378
                             
                    
                        
                            
                            
                                std::string GetFilePath() { char 
exepath[MAX_PATH];std::string strdir,tmpdir;memset(exepath,0,MAX_PATH); 
GetModuleFileName(NULL,exepath,MAX_PATH); tmp...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 14:59:14   
                                阅读次数:
240