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

java³£ÓÃÈÕÆÚ´¦Àí

package com.hefeng.test;  
  
  
import java.text.DateFormat;  
import java.text.ParsePosition;  
import java.text.SimpleDateFormat;  
import java.util.Calendar;  
import java.util.Date;  
import java.util.GregorianCalendar;  
  
public class TimeTest {  
    //ÓÃÀ´È«¾Ö¿ØÖÆ ÉÏÒ»ÖÜ£¬±¾ÖÜ£¬ÏÂÒ»ÖܵÄÖÜÊý±ä»¯  
    private  int weeks = 0;  
    private int MaxDate;//Ò»ÔÂ×î´óÌìÊý  
    private int MaxYear;//Ò»Äê×î´óÌìÊý  
      
      
    /**
      * @param args
      */  
    public static void main(String[] args) {  
         TimeTest tt = new TimeTest();  
         System.out.println("»ñÈ¡µ±ÌìÈÕÆÚ:"+tt.getNowTime("yyyy-MM-dd"));  
         System.out.println("»ñÈ¡±¾ÖÜÒ»ÈÕÆÚ:"+tt.getMondayOFWeek());  
         System.out.println("»ñÈ¡±¾ÖÜÈÕµÄÈÕÆÚ~:"+tt.getCurrentWeekday());  
         System.out.println("»ñÈ¡ÉÏÖÜÒ»ÈÕÆÚ:"+tt.getPreviousWeekday());  
         System.out.println("»ñÈ¡ÉÏÖÜÈÕÈÕÆÚ:"+tt.getPreviousWeekSunday());  
         System.out.println("»ñÈ¡ÏÂÖÜÒ»ÈÕÆÚ:"+tt.getNextMonday());  
         System.out.println("»ñÈ¡ÏÂÖÜÈÕÈÕÆÚ:"+tt.getNextSunday());  
         System.out


Ïà¹ØÎĵµ£º

´«ÖDz¥¿ÍJAVAÅàѵstruts2ѧϰ±Ê¼ÇÒ»

´«ÖDz¥¿ÍJAVAÅàѵstruts2ѧϰ±Ê¼ÇÒ»
   
Àë±ÏÒµÓÖ×ß½üÁËÒ»²½£¬ÐÄÀïÓÖĪÃûµÄ½ôÕÅÆðÀ´¡£½ñÌìÓÐÒ»¸öͬÐĹ«Ë¾·Å¼ÙÐÇÆÚѧУÀ´ÉϿΣ¬ÎÒ¶ÔÆä³ýÁËÅå·þÖ®Í⣬¾ÍÖ»ÓÐÏÛĽÁË£¬¹¤×Ê6.5£Ë¿É²»ÊÇÎÒÏÖÔÚµÄˮƽ
¸ÒÏëµÄºÇ£¬ËäÈ»ÎÒ¶Ô£³£Ç²»ÊǺܸÐÐËȤ£¬ÎÒÒ²¸üÏàÐŽÅ̤ʵµÄÈ¥×ߺÃÿһ²½À´µÃ̤ʵ£¡µ«ÊÇÕ⼸¸öͬѧËùÈ¡µÃ³É¼¨È ......

Java Óë ¸»Ê¿¿µ

¸´Ï°Ò»ÏÂjava´úÂ룬´úÂëÎÊÌâºÜ¶àÇë¸ßÊÖ²»Áߴͽ̡£°ïÖúÖع¹¡£
public static void main(String[] args){
    int employeeCount = 420000;  //Ô±¹¤×ÜÊý 
    Employee[] ËùÓÐÖ°¹¤  = getAllEmployee();
    for((i=0;i<=employeeCount ;i++) {
&n ......

Java¶àÏß³Ì

http://lavasoft.blog.51cto.com/62575/27069
ÊØ»¤Ï̺߳ÍÓû§Ïß³Ì
ÊØ»¤Ïß³ÌÓëÆÕͨÏ̵߳ÄΨһÇø±ðÊÇ£ºµ±JVMÖÐËùÓеÄÏ̶߳¼ÊÇÊØ»¤Ï̵߳Äʱºò£¬JVM¾Í¿ÉÒÔÍ˳öÁË£»Èç¹û»¹ÓÐÒ»¸ö»òÒÔÉϵķÇÊØ»¤Ïß³ÌÔò²»»áÍ˳ö¡££¨ÒÔÉÏÊÇÕë¶ÔÕý³£Í˳ö£¬µ÷ÓÃSystem.exitÔò±Ø¶¨»áÍ˳ö£© 
ËùÒÔsetDeamon(true)µÄΨһÒâÒå¾ÍÊǸæËßJVM²»ÐèÒªµÈ´ ......

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

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

OSGiÊÇʲô£ºJavaÓïÑԵĶ¯Ì¬Ä£¿éϵͳ

֮ǰ51CTOÔø·¢¹ýһƪÎÄÕ½Ð×ö¡¶OSGiΪʲôÖØÒª£ºÏòÄ£¿é»¯×ªÒƵÄÖ÷¹¥ÊÖ
¡·£¬ÀïÃæ¶ÔÓÚOSGiµÄÓÅÊƽøÐÐÁË·ÖÎö¡£²»¹ý£¬¶ÔÓÚ
¾¿¾¹Ê²Ã´ÊÇOSGi£¬ºÜ¶àÈËÈÔȻֻÓÐÒ»¸öÄ£ºýµÄ¸ÅÄî¡£±¾ÏµÁУ¨ÄãºÃ£¬OSGi
£©´Ó»ù´¡¿ª
ʼ½éÉÜÁËOSGi¡£±¾²¿·Ö½éÉÜOSGiÊÇʲô£¬ÒÔ¼°OSGiÈÝÆ÷µÄһЩÏÖ×´¡££¨×¢£º±¾ÎÄÓ¢ÎÄÔ­ÎÄÓÚ08Äê3Ô·¢²¼ÔÚJavaWorldÍøÕ¾£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ