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());
&nbs
Ïà¹ØÎĵµ£º
±¾ÎÄ·ÖÊ®ËĸöÀà±ð¶ÔÕýÔò±í´ïʽµÄÒâÒå½øÐÐÁ˽âÊÍ£¬ÕâÊ®Ëĸ÷Àà±ðÊÇ£º×Ö·û/×Ö·ûÀà/Ô¤¶¨Òå×Ö·ûÀà/POSIX×Ö·ûÀà/java.lang.CharacterÀà/Unicode¿éºÍÀà±ðµÄÀà/±ß½çÆ¥ÅäÆ÷/GreedyÊýÁ¿´Ê/ReluctantÊýÁ¿´Ê/PossessiveÊýÁ¿´Ê/LogicalÔËËã·û/BackÒýÓÃ/ÒýÓÃ/ÌØÊâ¹¹Ôì¡£
1.1.×Ö·û
x ×Ö·û x¡£ÀýÈça±íʾ×Ö·ûa
\\&nbs ......
abstractÐÞÊηû
1.ÓÃabstractÐÞÊεÄÀà±íʾ³éÏóÀ࣬³éÏóÀàλÓڼ̳ÐÊ÷µÄ³éÏó²ã£¬³éÏóÀ಻Äܱ»ÊµÀý»¯£¬¼´²»ÔÊÐí´´½¨
³éÏóÀà±¾ÉíµÄʵÀý¡£Ã»ÓÐÓÃabstractÐÞÊεÄÀà³ÆΪ¾ßÌåÀ࣬¾ßÌåÀàÊÇ¿ÉÒÔ±»ÊµÀý»¯µÄ¡£
2.ÓÃabstractÐÞÊεķ½·¨±íʾ³éÏó·½·¨£¬³éÏó·½·¨Ã»Óз½·¨Ìå¡£³éÏó·½·¨ÓÃÀ´±íÊöÏµÍ ......
²åÈëÅÅÐòµÄ¹¤×÷ÔÀíÊÇͨ¹ý¹¹½¨ÓÐÐòÐòÁУ¬¶ÔÓÚδÅÅÐòÊý¾Ý£¬ÔÚÒÑÅÅÐòÐòÁÐÖдӺóÏòǰɨÃ裬ÕÒµ½ÏàӦλÖò¢²åÈë¡£Æä¾ßÌå²½Öè²Î¼û´úÂë¼°×¢ÊÍ¡£
/**
* ²åÈëÅÅÐò<br/>
* <ul>
* <li>´ÓµÚÒ»¸öÔªËØ¿ªÊ¼£¬¸ÃÔªËØ¿ÉÒÔÈÏΪÒѾ±»ÅÅÐò</li>
* <li>È¡³öÏÂÒ»¸öÔªËØ£¬ÔÚÒѾÅÅÐòµÄÔªËØÐò ......
JAVA,List,Map,Set,ÈÝÆ÷
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
Collection½Ó¿Ú
¡¡¡¡CollectionÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©¡£Ò»Ð© CollectionÔÊÐíÏàͬµÄÔªËضø ......
xmlÎļþÄÚÈÝ£º
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel switchTime="20080101000101" k="1.07" n="6" s="55" channelId="0404" channelName="xxxx.xxxx.xxx.cn"/>
<channel switchTime="20080301010101" k="1.07" n="6" s="55" channelId="0405" channelName="xxx ......