java³õʼ»¯Ë³Ðò
³õʼ»¯µÄʵ¼Ê¹ý³ÌΪ£º
ÔÚÆäËüÈκÎÊÂÎï·¢Éú֮ǰ£¬½«·ÖÅ䏸¶ÔÏóµÄ´æ´¢¿Õ¼ä³õʼ»¯³É¶þ½øÖƵÄÁã¡£
¸¸Ààstatic ¿é»ò±äÁ¿
×ÓÀàstatic¿é»ò±äÁ¿
¸¸ÀàµÄÏÔʽ³õʼ»¯
¸¸À๹Ô캯Êý
×ÓÀàµÄÏÔʽ³õʼ»¯
×ÓÀàµÄ¹¹Ô캯Êý
´Ë¹ý³ÌÖÐÈôÓи¸À๹ÔìÌåÖе÷Ó÷½·¨¿É±»×ÓÀàÖØÔØ£¬ÔòJVM»á´Ó×îµÍ×ÓÀà¶ÔÏó´¦Ñ°ÕÒ´Ë·½·¨£¬ÕÒµ½ÔòÖ´ÐУ¬ËäÈ»´Ëʱ¶ÔÏó»¹Î´ÍêÈ«Éú³É£¨¿ÉÄÜ»áÔì³ÉDZÔڵĴíÎ󣩡£
Ïà¹ØÎĵµ£º
Õ⼸ÌìÒ»Ö±ÔÚ¸ã¹ØÓÚÓÅÏȼ¶¶ÓÁеÄʵÏÖ,ÒòΪҪ¿¼Âǵ½Ï̵߳ݲȫ,ËùÒÔPriorityQueue¾Í²»ÊÊÓÃÁË¡£Ò»¸ö·Ç³£¼òµ¥µÄʵÏÖ·½
·¨£¬ÄǾÍÊǰÑÓÅÏȼ¶±È½ÏºÃµÄ²åÈëÒ»¸ö¶ÓÁУ¬ÓÅÏȼ¶µÍµÄ²åÈëÁíÒ»¸ö¶ÓÁУ¬È¡ÊýµÄʱºòÏÈÔÚÓÅÏȼ¶¸ßµÄ¶ÓÁÐÉÏÈ¡Êý¡£ÕâÓиöȱµã¾ÍÊÇÈç¹ûÓÅÏȼ¶±ðÔ½¶àµÄ»°£¬¶ÓÁ ......
½ñÌìһͬѧ×ö¶«Î÷ÒªÓÃÕâ¸ö¶«¶«,¾Í°ïËûдÁËÒ»¸ö,ÏÈת»¯³Éºó׺±í´ïʽ,È»ºóÔÙ
¼ÆËã.µ±È»Ò²¿ÉÒÔÖ±½Ó¼ÆËãÖÐ׺±í´ïʽ,¿¼Âǵ½Òª¶àλÊý,¾ÍûÄÇô×ö.
Ö§³Ö¶àλÊýµÄ´øÀ¨ºÅµÄÕûÊýµÄ¼Ó¼õ³Ë³ý.
Java
´úÂë
package
edu.jlu.fuliang;
import
java
.util.ArrayList;
import
......
ÎÒÃÇÖªµÀ£¬ÔÚJavaÖÐÉèÖñäÁ¿ÖµµÄ²Ù×÷£¬³ýÁËlongºÍ doubleÀàÐ͵ıäÁ¿Íâ¶¼ÊÇÔ×Ó²Ù×÷£¬Ò²¾ÍÊÇ˵£¬¶ÔÓÚ±äÁ¿ÖµµÄ¼òµ¥¶Áд²Ù×÷ûÓбØÒª½øÐÐͬ²½¡£ÕâÔÚJVM 1.2֮ǰ£¬JavaµÄÄÚ´æÄ£ÐÍʵÏÖ×ÜÊÇ´ÓÖ÷´æ¶ÁÈ¡±äÁ¿£¬ÊDz»ÐèÒª½øÐÐÌØ±ðµÄ×¢ÒâµÄ¡£¶øËæ×ÅJVMµÄ³ÉÊìºÍÓÅ»¯£¬ÏÖÔÚÔÚ¶àÏ̻߳·¾³ÏÂvolatile¹Ø¼ü×ÖµÄʹÓñäµÃ·Ç³£ÖØÒª¡£ÔÚµ±Ç°µ ......
//¼ÆËãÌìÊý
public List day(String dates,String datee) throws ParseException{
List dayls=new ArrayList();
// ×Ö·û´®×ª»»³ÉÈÕÆÚ
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Date startDate = format.parse(dates);
&nb ......