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


Ïà¹ØÎĵµ£º

JavaScriptºÍJavaµÄÇø±ð


JavaScriptºÍJavaµÄÇø±ð
×÷Ϊ±¾Õ¾µÄ×ÚÖ¼£­£­Ìṩѧϰweb±à³ÌµÄËùÓÐ֪ʶ£¬ÌØ¿ªÉ豾רÀ¸JavaScript»ù´¡½Ì³Ì£®±¾JavaScript»ù´¡½Ì³ÌµÄÄÚÈÝ´Ó»¥ÁªÍøÉÏתÔØ£¬Ô­ÔòÉÏ»á´øÓÐÔ­½Ì³ÌµÄÁ´½Ó£¬ËùÒÔ±¾JavaScript»ù´¡½Ì³ÌµÄ°æȨ¹éÔ­´¦ËùÓУ¬ÌØ´ËÉùÃ÷£®ÈÈÇеÄÏ£Íû±¾JavaScript»ù´¡½Ì³ÌÄÜΪÄã´øÀ´°ïÖú£­£­¿µÊ¢²©¿Í£®
JavaScriptÓïÑÔºÍJ ......

Java¶ÔÏó¡¢ÒýÓÃ

Java¶ÔÏó¼°ÒýÓÃ
    Java¶ÔÏó¼°ÒýÓÃÊÇÈÝÒ×»ìÏýÈ´ÓÖ±ØÐëÕÆÎյĻù´¡ÖªÊ¶£¬±¾Õ²ûÊöJava¶ÔÏóºÍÒýÓõĸÅÄÒÔ¼°ÓëÆäÃÜÇÐÏà¹ØµÄ²ÎÊý´«µÝ¡£
    ÏÈ¿´ÏÂÃæµÄ³ÌÐò£º
    StringBuffer s;
    s = new StringBuffer("Hello World!");
    µÚÒ»¸ö ......

JavaScriptºÍJavaµÄÇø±ð

¡¡¡¡ËäÈ»JavaScriptÓëJavaÓнôÃܵÄÁªÏµ£¬µ«È´ÊÇÁ½¸ö¹«Ë¾¿ª·¢µÄ²»Í¬µÄÁ½¸ö²úÆ·¡£JavaÊÇSUN¹«Ë¾ÍƳöµÄÐÂÒ»´úÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼ÆÓïÑÔ£¬ÌرðÊʺÏÓÚInternetÓ¦ÓóÌÐò¿ª·¢£»¶øJavaScriptÊÇNetscape¹«Ë¾µÄ²úÆ·£¬ÆäÄ¿µÄÊÇΪÁËÀ©Õ¹Netscape Navigator¹¦ÄÜ,¶ø¿ª·¢µÄÒ»ÖÖ¿ÉÒÔǶÈëWebÒ³ÃæÖеĻùÓÚ¶ÔÏóºÍʼþÇý¶¯µÄ½âÊÍÐÔÓïÑÔ, ËüµÄÇ°ÉíÊ ......

JavaÕ»Óë¶ÑµÄ˼¿¼£¨×ªÔØ£©

1. Õ»(stack)Óë¶Ñ(heap)¶¼ÊÇJavaÓÃÀ´ÔÚRamÖдæ·ÅÊý¾ÝµÄµØ·½¡£ÓëC++²»Í¬£¬Java×Ô¶¯¹ÜÀíÕ»ºÍ¶Ñ£¬³ÌÐòÔ±²»ÄÜÖ±½ÓµØÉèÖÃÕ»»ò¶Ñ¡£ 2. Õ»µÄÓÅÊÆÊÇ£¬´æÈ¡ËٶȱȶÑÒª¿ì£¬½ö´ÎÓÚÖ±½ÓλÓÚCPUÖеļĴæÆ÷¡£µ«È±µãÊÇ£¬´æÔÚÕ»ÖеÄÊý¾Ý´óСÓëÉú´æÆÚ±ØÐëÊÇÈ·¶¨µÄ£¬È±·¦Áé»îÐÔ¡£ÁíÍ⣬ջÊý¾Ý¿ÉÒÔ¹²Ïí£¬Ïê¼ûµÚ3µã¡£¶ÑµÄÓÅÊÆÊÇ¿ÉÒÔ¶¯Ì¬µØ·ÖÅäÄÚ ......

java »ù´¡ÖªÊ¶

1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ   
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.¼Ì³Ð£º
¼Ì³ÐÊÇÒ»ÖÖÁª½áÀàµÄ²ã´ÎÄ£ÐÍ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ