Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java ·ºÐÍÉÏϽçÎÊÌâ

java·ºÐÍÖеÄsuper¹Ø¼ü×Ö²»Ì«³£Óã¬Ò²²»Ì«ºÃÀí½â£¬½ñÌìÓÖ´ÓÍ·¿´ÁË¿´javaµÄ·ºÐÍ»úÖÆ£¬×÷Ò»¼Ç¼¡£
ÉϽç:
ÉϽçÓÃextends¹Ø¼ü×ÖÉùÃ÷£¬±íʾ²ÎÊý»¯µÄÀàÐÍ¿ÉÄÜÊÇËùÖ¸¶¨µÄÀàÐÍ£¬»òÕßÊÇ´ËÀàÐ͵Ä×ÓÀà¡£ÈçÏÂÃæµÄ´úÂ룺
Java´úÂë
public void upperBound(List<? extends Date> list, Date date)   
{   
    Date now = list.get(0);   
    System.out.println("now==>" + now);   
    //list.add(date); //Õâ¾ä»°ÎÞ·¨±àÒë   
    list.add(null);//Õâ¾ä¿ÉÒÔ±àÒ룬ÒòΪnullûÓÐÀàÐÍÐÅÏ¢   
}  
public void upperBound(List<? extends Date> list, Date date)
{
Date now = list.get(0);
System.out.println("now==>" + now);
//list.add(date); //Õâ¾ä»°ÎÞ·¨±àÒë
list.add(null);//Õâ¾ä¿ÉÒÔ±àÒ룬ÒòΪnullûÓÐÀàÐÍÐÅÏ¢
}
Ϊʲô»áÎÞ·¨±àÒëÄØ£¬Êµ¼Êµ÷ÓÃʱ´«ÈëµÄlist¿ÉÄÜÊÇjava.util.DateµÄij¸ö×ÓÀàµÄ²ÎÊý»¯ÀàÐÍ£¬Èç:
Java´úÂë
public void testUpperBound()   
{   
    List<Timestamp> list = new ArrayList<Timestamp>();   
    Date date = new Date();   
    upperBound(list,date);   
}  
public void testUpperBound()
{
List<Timestamp> list = new ArrayList<Timestamp>();
Date date = new Date();
upperBound(list,date);
}
Ò²¾ÍÊÇ˵£¬ÏÖÔÚupperBound·½·¨ÖÐʵ¼ÊµÄlistÊÇList<Timestamp>£¬ÏòËüÌí¼ÓÒ»¸öDateÀàÐÍ£¬¿Ï¶¨ÊDz»Ðеġ£Ïà·´£¬¶ÁÈ¡Êý¾Ýʱ£¬²»¹Üʵ¼ÊµÄlistÊÇʲôÀàÐÍ£¬µ«¿ÉÒÔÖªµÀËüÖÁÉٻ᷵»ØÒ»¸öDateÀàÐÍ£¬ËùÒÔÓÃforeach£¬getµÈûÓÐÎÊÌâ¡£
ÄÇôÈçºÎ½â¾öÄØ£¬¿ÉÒÔʹÓ÷ºÐÍ·½·¨
Java´úÂë
public <T extends Date> void upperBound2(List<T> list, T date)   
{   
    list.add(date);   
}  
publi


Ïà¹ØÎĵµ£º

Java Êý¾Ý¿âµÄUtil

 import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import com.paic.is.dispatch.TMPEntry;
import javapassword ......

javaÁ¬½Ó³Ø¼¼Êõ

2009-04-14 15:37
ËäÈ»ÏÖÔÚÓÃAPACHE COMMONS DBCP¿ÉÒԷdz£·½±ãµÄ½¨Á¢Êý¾Ý¿âÁ¬½Ó³Ø£¬
µ«ÊÇÏñÕâƪÎÄÕ°ÑÊý¾Ý¿âÁ¬½Ó³ØµÄÄÚ²¿Ô­ÀíдµÄÕâô͸³¹£¬×¢ÊÓÕâôÍêÕû£¬
ÕæÊǷdz£Äѵã¬Èÿª·¢ÈËÔ±¿ÉÒÔ¸üÉî²ã´ÎµÄÀí½âÊý¾Ý¿âÁ¬½Ó³Ø£¬ÕæÊǷdz£¸Ð
лÕâƪÎÄÕµÄ×÷Õß¡£
import java.sql.Connection;
import java.sql.DatabaseMetaData; ......

Java source code for calculating E


The Mean Opinion
Score (MOS) test is a well acccepted standard which is defined in the ITU-T
Rec.P.800.
The value of MOS
test is generated by letting large number of listeners to evaluate the quality
of the test sentences. 
The test scores
are averaged to a mean score which range fro ......

JAVA³õѧÕß±ØÖª

 
1.     Java Ô´ÎļþÖÐ×î¶àÖ»ÄÜÓÐÒ»¸öpublicÀà,¶øÇÒÕâ¸öÀàµÄÀàÃûÒªºÍÎļþÃûÒ»ÖÂ.ÆäËûÀàµÄ¸öÊý²»ÏÞ¡£
2.    ÃæÏò¶ÔÏó³ÌÐòÉè¼ÆµÄÌØÕ÷£¨·â×°ÐÔ£©£¨¼Ì³Ð£©£¨¶à̬ÐÔ£©
3.    ½Ó¿ÚÊÇÓÉ£¨³éÏó·½·¨£©ºÍ£¨³£Á¿£©×é³ÉµÄÌØÊâÀà
4.    ÓÃstaticÐÞÊεķ½·¨Ê ......

JavaÖеÄ×Ö·û¼¯±àÂëÈëÃÅ 2

 
¡¡¡¡Ëµµ½GB2312ºÍGBK¾Í²»µÃ²»ÌáÖÐÎÄÍøÒ³µÄ±àÂë¡£¾¡¹ÜºÜ¶àпª·¢µÄWebϵͳºÍÐÂÉÏÏßµÄ×¢Öعú¼Ê»¯µÄÍøÕ¾¶¼¿ªÊ¼Ê¹ÓÃUTF-8£¬ÈÔÓÐÏ൱һ²¿·ÖµÄÖÐÎÄýÌå¼á³ÖʹÓÃGB2312ºÍGBK£¬ÀýÈçÐÂÀ˵ÄÒ³Ãæ¡£ÆäÖÐÓÐÁ½µãºÜÖµµÃ×¢Òâ¡£
¡¡¡¡µÚÒ»£¬Ò³ÃæÖÐmeta±êÇ©µÄ²¿·Ö£¬³£³£¿ÉÒÔ¼ûµ½charset=GB2312ÕâÑùµÄд·¨£¬ºÜ²»ÐÒµÄÊÇ£¬Õâ¸ö“cha ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ