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

Java Calendar »ñÈ¡±¾ÖÜÖÜÒ»ºÍÖÜÈÕ´úÂë

/**
  * µÃµ½±¾ÖÜÖÜÒ»
  *
  * @return yyyy-MM-dd
  */
 public static String getMondayOfThisWeek() {
  Calendar c = Calendar.getInstance();
  int day_of_week = c.get(Calendar.DAY_OF_WEEK) - 1;
  if (day_of_week == 0)
   day_of_week = 7;
  c.add(Calendar.DATE, -day_of_week + 1);
  return df2.format(c.getTime());
 }
 /**
  * µÃµ½±¾ÖÜÖÜÈÕ
  *
  * @return yyyy-MM-dd
  */
 public static String getSundayOfThisWeek() {
  Calendar c = Calendar.getInstance();
  int day_of_week = c.get(Calendar.DAY_OF_WEEK) - 1;
  if (day_of_week == 0)
   day_of_week = 7;
  c.add(Calendar.DATE, -day_of_week + 7);
  return df2.format(c.getTime());
 }


Ïà¹ØÎĵµ£º

javaÒì³£´¦Àí¼¼ÇÉ´óÈ«

¡¡¡¡Java±à³ÌÖеÄÒì³£´¦ÀíÊÇÒ»¸öºÜ³£¼ûµÄ»°ÌâÁË£¬¼¸ºõÈκÎһÎéÉÜÐÔµÄJava¿Î³Ì¶¼»áÌáµ½Òì³£´¦Àí¡£²»¹ý£¬ÎÒÈÏΪºÜ¶àÈËÆäʵ²¢Ã»ÓÐÕæÕýÕÆÎÕÕýÈ·´¦ÀíÒì³£Çé¿öµÄ·½·¨ºÍ²ßÂÔ£¬×î¶àÒ²¾Í²»¹ýÁ˽â¸ö´ó¸Å£¬ÖªµÀµã¸ÅÄî¡£±¾ÎľͶÔÈýÖÖ²»Í¬³Ì¶ÈºÍÖÊÁ¿µÄJavaÒì³£´¦Àí½øÐÐÁËÌÖÂÛ£¬Ëù²ûÊöµÄ´¦ÀíÒì³£µÄ·½Ê½°´ÊÖ·¨µÄ¸ßÏ·ÖΪ£ººÃ£¬²»ºÃºÍ¶ñÁÓ ......

JAVA²ÎÊý´«µÝÖµ´«µÝµÄÀí½â¡£

Ê×ÏÈÃ÷ȷһϣºjavaÀïÃæÖ»ÓÐÖµ´«µÝ£¬ÒýÓô«µÝÖ»ÊÇÒ»Ö»Îó¶Á¶øÒÑ¡£
À´¿´Ò»¸öÀý×Ó£º
public static void main(String[] args)
{
StringBuffer str1 = new StringBuffer("hello");
test(str1);
System.out.println("main : " + str1);
}
public static void test(StringBuffer s ......

flexÇëÇóÖÐץȡJAVAÒì³£ÐÅÏ¢

     ÈçºÎ»ñÈ¡LCDSÇëÇó¹ý³ÌÖÐJAVAÅ׳öÀ´µÄExceptionÄØ£¿ µ±flexͨ¹ýÇëÇó¶ÔÏóÇëÇó·þÎñ¶ËµÄʱºò£¬ÇëÇó³É¹¦»á·¢mx.rpc.events.ResultEventʼþ£¬Óöµ½·þÎñ¶ËÒì³£»òÆäËû·Ç200µÄHTTP״̬Â루ÀýÈç404£¬403£©Ôò»á·¢mx.rpc.events.FaultEventʼþ£¬µ«ÇëÇóʧ°ÜÊÇÒòΪʲôԭÒòÄØ£¿ÒòΪ²»Í¬µÄÔ­Òò¿ÉÄܵ¼Ö½çÃæÉϲ»Í ......

ËùÓÐѧjavaÍøÖ·

http://edu.itfuture.org/index.jsp  ³ÌÐòÔ±Ö®¼Ò
www.8isp.com
www.wang48.com  
www.topsage.com  ´ó¼ÒÍø
www.cnsd.com     
http://www.jpeixun.com   / ʱ´ú¿¥êÉ
http://bbs.langsin.com/forum-9-3.html  ÀËêØÍø
www.123w.net 
w ......

java Adapterģʽ


2009-08-19
תÔØ £º http://yahaitt.javaeye.com/blog/453032
java Adapterģʽ
¹Ø¼ü×Ö: android adapter
ͨ³££¬¿Í»§Àࣨclients of class£©Í¨¹ýÀàµÄ½Ó¿Ú·ÃÎÊËüÌṩµÄ·þÎñ¡£ÓÐʱ£¬ÏÖÓеÄÀࣨexisting class£©¿ÉÒÔÌṩ¿Í»§ÀàµÄ¹¦ÄÜÐèÒª£¬µ«ÊÇËüËùÌṩµÄ½Ó¿Ú²»Ò»¶¨ÊÇ¿Í»§ÀàËùÆÚÍûµÄ¡£ÕâÊÇÓÉÓÚÏÖÓеĽӿÚÌ«Ïêϸ»òÕßȱ·¦ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ