例子
[code] public static void main(String[] args) {
Map m = new CaseInsensitiveMap();
m.put("CaseKey", "hello");
System.out.println(m.get("CaseKey"));
System.out.println(m.get("casekey"));
System.out.println(m.get("caSekEy"));
}[/code]
结果:
hello
hello
hello
        [code] public static void main(String[] args) {
Map m = new CaseInsensitiveMap();
m.put("CaseKey", "hello");
System.out.println(m.get("CaseKey"));
System.out.println(m.get("casekey"));
System.out.println(m.get("caSekEy"));
}[/code]
结果:
hello
hello
hello
 
                   
                   
                   
                   
       
           
                 
                 
                 
                 
                 
                
               
                 
                 
                 
                 
                
               
                 
                 扫一扫
扫一扫
                     
              
             
                   7810
					7810
					
 被折叠的  条评论
		 为什么被折叠?
被折叠的  条评论
		 为什么被折叠?
		 
		  到【灌水乐园】发言
到【灌水乐园】发言                                
		 
		 
    
   
    
   
             
            


 
            