Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

´¿java PHPÒýÇæ——Quercus

ÓÉÓÚ¹«Ë¾ÏîÄ¿µÄÐèÒª£¬×î¾­ÔÚÑо¿QuercusÒ»¸ö´¿javaµÄphpÒýÇæ¡£ÏîÄ¿ÕâÁ½¸öÐèÒª×öµÄ¾ÍÊǽ«¸ÃÒýÇæ²Ã¼ô£¬×öÒ»¸öÏà¶Ô°²È«µÄ°æ±¾£¬Ìṩ¸øISVʹÓã¬Í¬Ê±£¬ÔÚÒýÇæÖÐÌṩĬÈϵĽӿڹ©µ÷Óá£ËùÒÔÏÈÑо¿ÁËһϣ¬ÔÚQuercusÒýÇæµÄÖ§³ÖÏ£¬PHPÈçºÎÓëjava¼¯³É¡£
ÒÔÏÂÊÇѧϰµ½µÄ¼¸µã£º
1¡¢Èç¹ûʹÓàResin-IoC/WebBeansÀ´×éÖ¯Ó¦Óõķþ ......

¡¾JAVAѧϰ±Ê¼Ç¡¿01 ±êÖ¾·ûºÅ¡¢¹Ø¼ü×Ö¡¢ÀàÐÍ

Ò»¡¢JAVAÖж¨ÒåÁËÈýÖÖ×¢ÊÍÀàÐÍ£º
//µ¥ÐÐ×¢ÊÍ——×¢Ê͵½ÐÐβ
/*¶àÐÐ×¢ÊÍ*/
/**¿ÉÒÔÓÃÓÚÎĵµ´¦ÀíµÄµ¥ÐлòÕß¶àÐÐ×¢ÊÍ*/
// µ¥ÐÐ×¢ÊÍ
/*
¶àÐÐ×¢ÊÍ£¬´ËÄÚÈÝÒ²²»»á±»Ö´ÐÐ
*/
/**
Îĵµ×¢ÊÍ£¬ÓÐרÃŵŤ¾ß
*/
public class JavaDemo01
{
// Ö÷·½·¨
public static void main(String args[])
{
// Ô ......

JAVA×Ö·û´®´¦Àíº¯ÊýÁбíÒ»ÀÀ

JavaÖеÄ×Ö·û´®Ò²ÊÇÒ»Á¬´®µÄ×Ö·û¡£µ«ÊÇÓëÐí¶àÆäËûµÄ¼ÆËã»úÓïÑÔ½«×Ö·û´®×÷Ϊ×Ö·ûÊý×é´¦Àí²»Í¬£¬Java½«×Ö·û´®×÷ΪStringÀàÐͶÔÏóÀ´´¦Àí¡£½«×Ö·û´®×÷ΪÄÚÖõĶÔÏó´¦ÀíÔÊÐíJavaÌṩʮ·Ö·á¸»µÄ¹¦ÄÜÌØÐÔÒÔ·½±ã´¦Àí×Ö·û´®¡£ÏÂÃæÊÇһЩʹÓÃÆµÂʱȽϸߵĺ¯Êý¼°ÆäÏà¹ØËµÃ÷¡£
substring()
ËüÓÐÁ½ÖÖÐÎʽ£¬µÚÒ»ÖÖÊÇ£ºString substring( ......

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

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