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ÀïÃæÖ»ÓÐÖµ´«µÝ£¬ÒýÓô«µÝÖ»ÊÇÒ»Ö»Îó¶Á¶øÒÑ¡£
À´¿´Ò»¸öÀý×Ó£º
public static void main(String[] args)
{
StringBuffer str1 = new StringBuffer("hello");
test(str1);
System.out.println("main : " + str1);
}
public static void test(StringBuffer s ......
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 ......
Ò»£® InputºÍOutput
1. stream´ú±íµÄÊÇÈκÎÓÐÄÜÁ¦²ú³öÊý¾ÝµÄÊý¾ÝÔ´£¬»òÊÇÈκÎÓÐÄÜÁ¦½ÓÊÕÊý¾ÝµÄ½ÓÊÕÔ´¡£ÔÚJavaµÄIOÖУ¬ËùÓеÄstream£¨°üÀ¨InputºÍOut stream£©¶¼°üÀ¨Á½ÖÖÀàÐÍ£º
1.1 ÒÔ×Ö½ÚΪµ¼ÏòµÄstream
ÒÔ×Ö½ÚΪµ¼ÏòµÄstream£¬±íʾÒÔ×Ö½ÚΪµ¥Î»´ÓstreamÖжÁÈ¡»òÍùstreamÖÐдÈëÐÅÏ¢¡£ÒÔ×Ö½ÚΪµ¼ÏòµÄstream°üÀ¨ÏÂÃæ¼¸Ö ......
JavaScriptºÍJavaµÄÇø±ð
×÷Ϊ±¾Õ¾µÄ×ÚÖ¼££Ìṩѧϰweb±à³ÌµÄËùÓÐ֪ʶ£¬ÌØ¿ªÉ豾רÀ¸JavaScript»ù´¡½Ì³Ì£®±¾JavaScript»ù´¡½Ì³ÌµÄÄÚÈÝ´Ó»¥ÁªÍøÉÏתÔØ£¬ÔÔòÉÏ»á´øÓÐԽ̵̳ÄÁ´½Ó£¬ËùÒÔ±¾JavaScript»ù´¡½Ì³ÌµÄ°æȨ¹éÔ´¦ËùÓУ¬ÌØ´ËÉùÃ÷£®ÈÈÇеÄÏ£Íû±¾JavaScript»ù´¡½Ì³ÌÄÜΪÄã´øÀ´°ïÖú££¿µÊ¢²©¿Í£®
JavaScriptÓïÑÔºÍJ ......