javaÖеÄSystem.currentTimeMillis()º¯Êý
System.currentTimeMillis()£º¿ÉÒÔÌáÈ¡µ½µ±Ç°Ê±¼äµÄºÁÃëÊý£¬²úÉúÒ»¸öµ±Ç°µÄºÁÃ룬Õâ¸öºÁÃëÆäʵ¾ÍÊÇ×Ô1970Äê1ÔÂ1ÈÕ0ʱÆðµÄºÁÃëÊý¡£
³£¼û×÷ÓãºÒ»°ã¶¼ÊÇÓÃ2¸öʱ¼äµÄ²îÖµÀ´µÃµ½ÔËÐÐʱ¼äµÄ£¬³£ÓÃÀ´±È½Ï2¸öËã·¨µÄЧÂÊ£¡
long start = System.currentTimeMillis();
// ÕâÀï¿ÉÒÔ¼ÓÉÏÄãÒªÖªµÀµÄ·½·¨ÔËÐеÄʱ¼ä£¡£¡
long end = System.currentTimeMillis();
System.out.println("ÔËÐÐʱ¼ä£º"+(end - start));
¸ñʽ»¯System.currentTimeMillis()
1 import java.text.SimpleDateFormat;
2 import java.util.Locale;
3
4
5 public class FormatCurrentTime {
6 /**
7 * @param args
8 */
9 public static void main(String[] args) {
10
11 SimpleDateFormat sdf = new SimpleDateFormat("", Locale.SIMPLIFIED_CHINESE);
12 sdf.applyPattern("yyyyÄêMMÔÂddÈÕ HHʱmm·ÖssÃë");
13 System.out.println(sdf.format(System.currentTimeMillis()));
14
15 }
16 }
17
Ïà¹ØÎĵµ£º
JavaÖÐͨ¹ýimplements SerializableÀ´ÊµÏÖ¶ÔÏóµÄÐòÁл¯¡£ÆäʵSerializable½Ó¿ÚÖв¢Ã»ÓÐÐèҪʵÏֵķ½·¨£¬×¢Ã÷ij¸öÀàimplements SerializableÖ»ÊÇΪÁ˱êʶ»ò±íÃ÷Õâ¸öÀà¿ÉÒÔ±»ÐòÁл¯¡£
ÄÇôʲôÊÇÐòÁл¯ÄØ£¬ÐòÁл¯ÓÖÓÐʲô×÷ÓÃÄØ£¿
Ò»¸öÀ࣬»ò ......
ÅжÏÌ⣺ÉùÃ÷int a = 10; ÅжÏÒÔÏÂ3¸öÔËËãÊÇ·ñÄܹ»·Ö±ðͨ¹ýJava±àÒëÆ÷£º
a = a/2; a = a/3; a = a*2.89;
½â£ºa = a*2.89;²»ÐУ¬a*2.89ÔËËã»áÌáÉý³ÉdoubleÀàÐÍ
Êý×éÓÐûÓÐlength()Õâ¸ö·½·¨? StringÓÐûÓÐlength()Õâ¸ö·½·¨£¿
½â£ºÊý×éûÓÐlength()Õâ¸ö·½·¨£¬ÓÐlengthµÄÊôÐÔ¡£
¡¡¡¡ StringÓÐÓÐlength()Õ ......
ÀûÓÃoracle×Ô´øµÄutl_file°ü¿ÉÒÔ·ÃÎÊ´ÅÅÌÎļþ£¬µ«ÓиöÏÞÖÆ--ÎÞ·¨·ÃÎÊÎļþ¼Ð£¿Ê²Ã´ÒâË¼ÄØ£¿¾ÍÊÇ˵oracleÖ»ÄÜ·ÃÎÊÖ¸¶¨µÄÎļþ£¬¶ø²»ÄÜ·ÃÎÊÎļþ¼ÐϵÄδ֪Îļþ¡£ËùÒÔ£¬Èç¹ûҪͨ¹ýoracleÈ¥±éÀúijָ¶¨Â·¾¶ÏµÄËùÓÐÎļþ£¬sorry, impossible! µ«ÊÇ£¬ÓÐÒ»ÖÖÌæ´ú·½°¸¿ÉÒÔÖúÄãÒ»±ÛÖ®Á¦£¡
ÖÚËùÖÜÖªjavaÖ®FileÀàÖ¸ÏòµÄ¿ÉÒÔÊÇĿ¼Ҳ¿ÉÒÔÊ ......
JDBC£º
|-- Êý¾Ý¿â»¥Áª¡£
|-- ÓÉSUN¹«Ë¾ËùÖÆ¶¨µÄÓÃÀ´·ÃÎÊÊý¾Ý¿âµÄ¹æ·¶¡£
|-- Êý¾Ý¿âÊý¾Ý <= ½»»¥ => Ó¦ÓóÌÐò¡£
JDBC°üº¬Ö÷ÒªÁ½¸ö²¿·Ö£º
|-- part 1.ÓÉSUN¹«Ë¾Öƶ¨µÄ¹æ·¶½Ó¿Ú
|-- ......
ǰ¶Îʱ¼ä¹«Ë¾¿ªÊ¼ÓÃSSH¿ò¼Ü£¬ÒòΪÒÔǰûÓÐÓùý£¬Ï¸ö¼¸¸ödemo¿´¿´£¬·¢ÏÖÏëÀí½âStructs2µÄÁ÷³ÌÕæÊÇÀ§ÄÑ£»ºóÀ´ÓÖÏëÕûºÏExt½øÐнçÃæ¿ª·¢£¬ÉÏÍøÕÒ×ÊÁÏ£¬·¢ÏÖÓÃStructsÕûºÏAjax»¹ÕæÊÇÂé·³£¬²»½öǰ̨Ҫ×öÐ޸ģ¬ºǫ́»¹Òª¸ÄÅäÖÃÎļþÒÔ¼°actionÀà£¬Õæ²»ÖªµÀÕâÑùµÄ¶«Î÷×öÍêÁ˸ÃÔõôÑùȥά»¤£¡¼ÌÐøÔÚÍøÉÏÕÒÖÕÓÚ±»ÎÒ·¢ÏÖÁËVraptor£¬¸Ã¿ò ......