java ÈÕÆÚ²î ʵÏÖ(×·ÖÖÓǰ)¹¦ÄÜ
½ñÌì¾ÀíÈÃдһ¸ö£¬¸ù¾ÝÐÅÏ¢ÉÏ´«Ê±¼ä£¬ÏÔʾ£¬£¿·ÖÖÓǰ£¬£¿Ð¡Ê±Ç°£¬£¿Ììǰ£¬ÀàËÆqq¿Õ¼ä·¢±íµÄÐÄÇéÈÕÆÚ£»
ÓÃÁËÒ»¸ö×ÔÎҸоõ±¿µÄ·½·¨£¬²»¹ý»¹ÊÇʵÏÖÁË£¬ºÇºÇºÇ
public static String getCompareTime(String filetime){
//·µ»ØµÄ×Ö·û´®
String retStr ="";
//´«ÈëµÄÈÕÆÚÊÇ2008-9-12µÈ£¬²»×÷´¦Àí
if(filetime.indexOf("-")>0){
retStr =filetime;
}
else{
try{
DateFormat day = new SimpleDateFormat("dd");
DateFormat hour = new SimpleDateFormat("HH");
DateFormat minute = new SimpleDateFormat("mm");
Date today = new Date();
//µÃµ½µ±Ç°Ê±¼äµÄÈÕ£¬Ð¡Ê±£¬·ÖÖÓ
int nowDay =Integer.parseInt(day.format(today));
int nowHour =Integer.parseInt(hour.format(today));
int nowMinute =Integer.parseInt(minute.format(today));
// System.out.println("nowDay:"+nowDay);
// System.out.println("nowDay:"+nowHour);
// System.out.println("nowDay:"+nowMinute);
//¸ñʽ»¯´«ÈëµÄ×Ö·û´®
DateFormat df = new SimpleDateFormat("yy/MM/dd HH:mm:ss");
Date dataTime = df.parse(filetime);
//µÃµ½´«Èëʱ¼äµÄÈÕ£¬Ð¡Ê±£¬·ÖÖÓ
int dataDay =Integer.parseInt(day.format(dataTime));
int dataHour =Integer.parseInt(hour.format(dataTime));
&n
Ïà¹ØÎĵµ£º
JavaÉè¼ÆÄ£Ê½Ö®Facadeģʽ GOF¡¶Éè¼ÆÄ£Ê½¡·Ò»Êé¶ÔFacadeģʽÊÇÕâÑùÃèÊöµÄ:
¡¡¡¡Îª×ÓϵͳÖеÄÒ»×é½Ó¿ÚÌṩһ¸öͳһ½Ó¿Ú¡£Facadeģʽ¶¨ÒåÁËÒ»¸ö¸ü¸ß²ãµÄ½Ó¿Ú£¬Ê¹×Óϵͳ¸ü¼ÓÈÝÒ×ʹÓá£
¡¡¡¡´óÖÂÒâ˼ÊÇ˵£ºÊ¹ÓÃÒ»ÖÖ±ÈÔÓз½Ê½¸ü¼òµ¥µÄ°ì·¨Óëϵͳ½»»¥¡£ÀýÈ磬ÎÒÃǰÑÒ»¸öºÜÖØÒªµÄÎļþ£¬·ÅÔÚÁ˵ڶþ³éÌëÀ¶øµÚ¶þ¸ö³éÌëµÄÔ ......
ʲôÊÇ·´Éä
java³ÌÐò¿ÉÒÔÔÚÔËÐÐÆÚ¼ä¶¯Ì¬µÄ¼ÓÔØ¡¢½âÎöºÍʹÓÃһЩÔÚ±àÒë½×¶Î²¢²»È·¶¨µÄÀàÐÍ£¬ÕâÒ»»úÖÆ±»³ÆÎª“·´É䣨reflection£©”»òÕß“ÄÚÊ¡£¨introspection£©”.
·´Éä»úÖÆÌṩµÄ¹¦ÄÜ
1£¬¼ÓÔØÔËÐÐʱ²ÅÄÜÈ·¶¨µÄÀàÐÍ
  ......
ºÃ¼¸Ììûд²©¿Í£¬Õ⼸Ì춼æ×Åд´úÂ룬ÖÐÆÚ¼ì²é¸Õ¹ý£¬ºóÃæÊ£ÏµÄʱ¼äʵ¼ÊºÜÉÙÁË£¬Òª×¥½ôʱ¼äÁË£¬ÂíÉϾ͵ñÏÒµ×ßÈËÁË¡£ÑÔ¹éÕý´«£¬ÔÚ±àÂë¹ý³ÌÖÐÓöµ½µÄÎÊÌ⣬ÎÒ¶¼¼Ç¼ÔÚ²©¿ÍÖУ¬·½±ãÒÔºó²éÔÄдÂÛÎÄ¡£Õâ´ÎÊǼÆËãÍøÂçµØÖ·£¬¸ø³öÒ»¸öipºÍËüµÄ×ÓÍøÑÚÂ룬ͨ¹ýÔËËãµÃµ½ÍøÂçµØÖ·£¨»òÕß˵ÊÇÍøÂçºÅ£©
public static ......
public class OperatExcel
{
private File file = new File(ParamenterInit.SRCEXCELPATH);
private File outfile = new File(ParamenterInit.DESTEXCELPATH);
private static String sheetName = ParamenterInit.SHEETNAME;
  ......