javaʱ¼äºÍÈÕÆÚÀ©Õ¹
±¾ÈË֮ǰ×öµÄÏîÄ¿ÖлýÀÛ³£ÓõÄʱ¼ä·½·¨£¬Ìù³öÀ´Óë´ó¼Ò¹²Ïí£¬Èç¹ûÄÄÀïÓдíÎó»ò¸üÓÐЧµÄ·½·¨Ç뾡¹ÜÅÄש£¡¹þ¹þ
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.
Ïà¹ØÎĵµ£º
Ê×ÏÈһЩ±»³õʼ»¯¶ÔÏóµÄ¸ÅÄ
Àà±äÁ¿£¨Àྲ̬³ÉÔ±£©£º Àà±»¼ÓÔØʱ²úÉú£»ËüµÄÉú´æÆÚÊÇÀàµÄÉú´æÆÚ£»×Ô¶¯³õʼ»¯£¨Àà±»¼ÓÔØ£©
³ÉÔ±±äÁ¿£¨Àà³ÉÔ±£©£º ÔÚʹÓÃnew´´½¨¸ÃÀàʵÀýʱ²úÉú£»ËüµÄÉú´æÆÚÓë¸ÃÀàʵÀý¶ÔÏóµÄÉú´æÆÚÏàͬ£»
×Ô¶¯³õʼ»¯£¨¹¹Ôì·½·¨±»µ÷Óã©
¾Ö²¿±äÁ¿£¨ÀàµÄ·½·¨ÖеıäÁ¿£©£º ¸Ã·½·¨±»µ÷ÓÃÊ ......
2009Äê1Ô£¬Ä³Èí¼þ¹«Ë¾Ò»ÔòÄêнʮÍòÕÐƸJAVA¸ß¼¶Èí¼þ¹¤³ÌʦµÄ¹ã¸æÎüÒýÁËÖÚ¶àýÌåºÍIT´ÓÒµÈËÔ±µÄÄ¿¹â£¬´ó¼ÒÖÃÒɵijýÁËÆľßÎüÒýÁ¦µÄÄêн֮Í⣬¸ü¶àµÄÊǶԸÃÆóÒµÔ¸ÒâƸÇë“ÓÐÄÜÁ¦µÄÓ¦½ì±ÏÒµÉú”¸Ðµ½À§»ó¡£ÔÚ´ó¶àÊýÆóÒµ¶¼Ç¿µ÷¹¤×÷¾ÑéµÄʱºò£¬¸ÃÆóҵΪʲôԸÒâ¸ß¶îƸÇëÓ¦½ì±ÏÒµÉúÄØ£¿¸ÃÆóÒµ¸ºÔðÈ˵ÄÒ»¾ä¿´ËƼòµ¥µÄ&ld ......
AndroidÖи÷ÖÖJAVA°üµÄ¹¦ÄÜÃèÊö
2009-09-29 13:05
ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwi ......