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ģʽ¶¨ÒåÁËÒ»¸ö¸ü¸ß²ãµÄ½Ó¿Ú£¬Ê¹×Óϵͳ¸ü¼ÓÈÝÒ×ʹÓá£
¡¡¡¡´óÖÂÒâ˼ÊÇ˵£ºÊ¹ÓÃÒ»ÖÖ±ÈÔÓз½Ê½¸ü¼òµ¥µÄ°ì·¨Óëϵͳ½»»¥¡£ÀýÈ磬ÎÒÃÇ°ÑÒ»¸öºÜÖØÒªµÄÎļþ£¬·ÅÔÚÁ˵ڶþ³éÌëÀ¶øµÚ¶þ¸ö³éÌëµÄÔ ......
StringÀàÖеĹ¹Ô캯Êý
String(); ¹¹ÔìÒ»¸ö¿Õ×Ö·û´®¶ÔÏó
String(byte[] bytes); ͨ¹ýbyteÊý×é¹¹Ôì×Ö·û´®¶ÔÏó
String(byte[] bytes,int offset,int length);ͨ¹ýbyteÊý×飬´Óoffset¿ªÊ¼£¬×ܹ²length³¤µÄ×Ö½Ú¹¹Ôì×Ö·û´®¶ÔÏó
String(char[] value); ͨ¹ýcharÊý×é¹¹Ôì×Ö·û´®¶ÔÏó
String(byte[] char,int offset,int length) ......
JavaϵÄÒ»¸ö¼òµ¥Ò×Óõķ´±àÒ빤¾ßjad
,
¿ÉÒԺܷ½±ãµÄ½«.class·´±àÒëΪ.Java.
Ò»¡¢»ù±¾Ó÷¨
Usage:jad
[option(s)]
Ö±½ÓÊäÈëÀàÎļþÃû£¬ÇÒÖ§³ÖͨÅä·û£¬ÈçÏÂËùʾ¡£
c:\Java\>jad
example1.class
c:\Java\>jad
*.class
½á¹ûÊǽ«example1.class·´±àÒëΪexample1.jad
¡£½«
example1.jad
¸ÄΪexampl ......
ËäÈ»¾³£´´½¨¶à¸ö²»ÏàͬµÄÏß³ÌÀ´Íê³É²»Ïà¹ØµÄÈÎÎñ£¬È»¶øÓÐʱִÐеÄÈÎÎñ¿ÉÄÜÓÐÒ»¶¨ÁªÏµ£¬ÕâÑù¾ÍÐèҪʹÕâЩÏ߳̽øÐн»»¥¡£±ÈÈçÓÐÒ»¸öË®ÌÁ£¬ÆäÖжÔË®ÌÁ²Ù×÷ÎÞ·Ç°üÀ¨“½øË®”ºÍ“ÅÅË®”£¬ÕâÁ½¸öÐÐΪ¸÷×Ô´ú±íÒ»¸öỊ̈߳¬µ±Ë®ÌÁÖÐûÓÐˮʱ£¬“ÅÅË®”ÐÐΪ²»ÄÜÔÙ½øÐУ ......
¿ª·¢JavaÓ¦ÓóÌÐòʱ£¬¿ª·¢ÕßÒªÏëÓÐЧµØÀûÓÃͳһ½¨Ä£ÓïÑÔ£¨UML£©£¬±ØÐëÈ«ÃæÀí½âUMLÔªËØÒÔ¼°ÕâЩԪËØÈçºÎÓ³Éäµ½Java¡£±¾ÎÄÖصãÌÖÂÛUMLÀàͼÖеÄÔªËØ¡£
ÀàͼÊÇ×î³£ÓõÄUMLͼ£¬ËüÓÃÓÚÃèÊöϵͳµÄ½á¹¹»¯Éè¼Æ¡£ÆäÖаüÀ¨Àà¹ØϵÒÔ¼°Óëÿ¸öÀà¹ØÁªµÄÊôÐÔ¼°ÐÐΪ¡£ÀàͼÄܳöÉ«µØ±íʾ¼Ì³ÐÓëºÏ³É¹Øϵ¡£ÎªÁ˽«Ààͼ×÷ΪһÖÖ¸ßЧµÄ¹µÍ¨¹¤¾ßʹ ......