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

java »ñȡʱ¼äÀà

 public String getCheckDateString(String str) {
        Date date = new Date();//»ñÈ¡µ±Ç°ÏµÍ³ÈÕÆÚ
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");//ʱ¼ä¸ñʽ
        Calendar cal = Calendar.getInstance();
        String CheDate = "";
        if (str.equals("½ñÌì")) {
            date.setTime(date.getTime());
            CheDate = " and s.StudyDate='" + format.format(date) + "'"; // dateFormat.format(toda) µÃµ½µÄÊǽñÌìµÄÈÕÆÚµÄStringÐÎʽ
        } else if (str.equals("×òÌì")) {
            date.setTime(date.getTime() - 24 * 60 * 60 * 1000);
            CheDate = " and s.StudyDate='" + format.format(date) + "'";
        } else if (str.equals("±¾ÖÜ")) {
            cal.setFirstDayOfWeek(Calendar.MONDAY);
            cal.setTime(date);
            int weekno = cal.get(Calendar.WEEK_OF_YEAR);
            cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
            cal.set(Calendar.WEEK_OF_YEAR, weekno);
            String from = format.format(cal.getTime());
            cal.setTimeInMillis(cal.getTimeInMillis()


Ïà¹ØÎĵµ£º

javaÐòÁл¯(Serializable)µÄ×÷Óúͷ´ÐòÁл¯

ÕâÀïתÔØһƪ½²½âjavaÐòÁл¯(Serializable)ºÍ·´ÐòÁл¯·½ÃæµÄ¸Ð¾õºÜºÃµÄÎÄÕ¡£
1¡¢ÐòÁл¯ÊǸÉʲôµÄ£¿
¼òµ¥Ëµ¾ÍÊÇΪÁ˱£´æÔÚÄÚ´æÖеĸ÷ÖÖ¶ÔÏóµÄ״̬£¨Ò²¾ÍÊÇʵÀý±äÁ¿£¬²»ÊÇ·½·¨£©£¬²¢ÇÒ¿ÉÒ԰ѱ£´æµÄ¶ÔÏó״̬ÔÙ¶Á³öÀ´¡£ËäÈ»Äã¿ÉÒÔÓÃÄã×Ô¼ºµÄ¸÷ÖÖ¸÷ÑùµÄ·½·¨À´±£ ´æobject states£¬µ«ÊÇJava¸øÄãÌṩһÖÖÓ¦¸Ã±ÈÄã×Ô¼ººÃµÄ±£´æ ......

JavaÖÐhashCode()·½·¨µÄ˵Ã÷

ÓÐÐí¶àÈËѧÁ˺ܳ¤Ê±¼äµÄJava£¬µ«Ò»Ö±²»Ã÷°×hashCode·½·¨µÄ×÷Óã¬
ÎÒÀ´½âÊÍһϰɡ£Ê×ÏÈ£¬ÏëÒªÃ÷°×hashCodeµÄ×÷Óã¬Äã±ØÐëÒªÏÈÖªµÀJavaÖеļ¯ºÏ¡£¡¡¡¡
×ܵÄÀ´Ëµ£¬JavaÖеļ¯ºÏ£¨Collection£©ÓÐÁ½À࣬һÀàÊÇList£¬ÔÙÓÐÒ»ÀàÊÇSet¡£
ÄãÖªµÀËüÃǵÄÇø±ðÂð£¿Ç°Õß¼¯ºÏÄÚµÄÔªËØÊÇÓÐÐòµÄ£¬ÔªËØ¿ÉÒÔÖظ´£»ºóÕßÔªËØÎÞÐò£¬µ«ÔªËز» ......

Âþ̸£ºÑ¡ÔñJava Web¿ª·¢Õæ²»ÈÝÒ×

ƽʱÔÚ¹¤×÷µÄʱºò£¬×ÜÊǾõµÃ¸Õ±ÏÒµµÄͬÊÂÃǶԼ¼ÊõµÄÀí½â²»µ½Î»£¬ÖªÆäÈ»¶ø²»ÖªÆäËùÒÔÈ»¡£¿ÉÊÇ£¬¾²ÏÂÐÄÀ´ÏëÒ»Ï룬ÕâÒ²²»ÄÜÈ«¹ÖËûÃÇ£¬²»ÊÇÐÂÈËÃDz»°®
ѧ£¬¶øÊÇÏÖÈç½ñJava Web¿ª·¢µÄÈ·ºÜ·±¸´¡£±íÃæÉÏ¿´£¬ÏÖÔÚ»áJavaµÄÈ˶àÈçţ룬SSH ºÞ²»µÃÊÇÿ¸ö java ¿ª·¢Åàѵ¿ÎµÄ±ØÑ¡ÏîÄ¿£¬µ«
WEB ¿ª·¢µÄÃż÷£¬ÕæµÄ²»µÍ¡£µ±È»£¬ÎÒ˵²»µÍ£ ......

javaµÄ¶¨Ê±Æ÷ʹÓ÷½·¨

  java¶¨Ê±Æ÷µÄʹÓÃ
¶¨Ê±Æ÷ÀàTimerÔÚjava.util°üÖС£Ê¹ÓÃʱ£¬ÏÈʵÀý»¯£¬È»ºóʹÓÃʵÀýµÄschedule(TimerTask task, long delay)·½·¨£¬É趨ָ¶¨µÄÈÎÎñtaskÔÚÖ¸¶¨µÄÑÓ³ÙdelayºóÖ´ÐС£¶¨Ê±Æ÷ÈÎÎñÀàTimerTaskÊdzéÏóÀ࣬¼Ì³Ð²¢ÖØдÆärun()·½·¨£¬¿ÉʵÏÖ¾ßÌåÈÎÎñ¡£
schedule(TimerTask task, Date time)É趨ָ¶¨ÈÎÎñtaskÔÚÖ¸ ......

JavaÓëActionScriptµÄSocket(1)

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cn.vicky.socket;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Vector;
/**
*
* @author Vicky
* ¹ã²¥Àà
*/
public class BMana ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ