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

java ʱ¼ä´¦ÀíÀà

1. Java¼ÆËãʱ¼äÒÀ¿¿1970Äê1ÔÂ1ÈÕ¿ªÊ¼µÄºÁÃëÊý.                                                  
                                                                                              
            
2. DateÀàµÄ¹¹Ô캯ÊýDate()·µ»Ø´ú±íµ±Ç°´´½¨µÄʱ¿ÌµÄ¶ÔÏó¡£DateµÄ·½·¨getTime()·µ»ØÒ»¸ölongÖµÔÚÊýÖµ
ÉϵÈÓÚ1970Äê1ÔÂ1ÈÕ֮ǰ»òÖ®ºóµÄʱ¿Ì¡£
3. DateFormatÀàÓÃÀ´×ª»»Dateµ½String,·´Ö®ÒàÈ»¡£¾²Ì¬·½·¨getDateInstance()·µ»ØDateFormatµÄȱʡ¸ñ
ʽ£»getDateInstance(DateFormat.FIELD)·µ»ØÖ¸¶¨µÄDateFormat¶ÔÏó¸ñʽ¡£Format(Date d)·½·¨·µ»Ø
String±íʾÈÕÆÚ£¬ÀýÈ磢January 1,2002.£¢·´¹ýÀ´£¬parse(String s)·½·¨·µ»ØÒÔ²ÎÊý×Ö·û´®±íʾµÄDate¶Ô
Ïó¡£
4. format()·½·¨·µ»ØµÄ×Ö·û´®¸ñʽ¸ù¾Ý²»Í¬µØÇøµÄʱ¼äÉèÖöøÓÐËù²»Í¬¡£
5. GregorianCalendearÀàÓÐÁ½¸öÖØÒªµÄ¹¹Ô캯Êý£ºGregorianCalerdar(),·µ»Ø´ú±íµ±Ç°´´½¨Ê±¼äµÄ¶ÔÏó£»
GregorianCalendar(int year,int month,int date)·µ»Ø´ú±íÈÎÒâÈÕÆڵĶÔÏó¡£GregorianCalendarÀàµÄ
getTime()·½·¨·µ»ØÈÕÆÚ¶ÔÏó¡£Add(int field,int amount)·½·¨Í¨¹ý¼Ó»ò¼õʱ¼äµ¥Î»£¬ÏóÌìÊý£¬ÔÂÊý»òÄêÊý
À´¼ÆËãÈÕÆÚ¡£
GregorianCalendarºÍ ʱ¼ä
Á½¸öGregorianCalendarµÄ¹¹Ô캯Êý¿ÉÒÔÓÃÀ´´¦Àíʱ¼ä¡£Ç°Õß´´½¨Ò»¸ö±íʾÈÕÆÚ£¬Ð¡Ê±ºÍ·ÖÖӵĶÔÏó£º
GregorianCalendar(int year, int month, int date, int hour, int minute)
µÚ¶þ¸ö´´½¨Ò»¸ö±íʾһ¸öÈÕÆÚ£¬Ð¡Ê±£¬·


Ïà¹ØÎĵµ£º

Java String.Format() ·½·¨¼°²ÎÊý˵Ã÷

JDK1.5ÖУ¬StringÀàÐÂÔöÁËÒ»¸öºÜÓÐÓõľ²Ì¬·½·¨String.format():
format(Locale l, String format, Object... args) ʹÓÃÖ¸¶¨µÄÓïÑÔ»·¾³¡¢¸ñʽ×Ö·û´®ºÍ²ÎÊý·µ»ØÒ»¸ö¸ñʽ»¯×Ö·û´®¡£
format(String format, Object... args) ʹÓÃÖ¸¶¨µÄ¸ñʽ×Ö·û´®ºÍ²ÎÊý·µ»ØÒ»¸ö¸ñʽ»¯×Ö·û´®¡£
¾Ù¼¸¸öÕâ¸ö·½·¨ÊµÓõÄÀý×Ó(×¢ÊÍÊÇÊä³ö½á¹û)£º ......

³¹µ×ת±äÁ÷£¬µÚ 2 ²¿·Ö£ºÓÅ»¯ Java ÄÚ²¿ I/O


Ìæ»»×Ö½ÚÊý×éÁ÷ºÍ¹ÜµÀÁ÷
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
he ......

Java ¿ª·¢ÖÐÓõ½µÄ¼¸ÖÖ¹ýÂËÆ÷

 
ÔÚJavaÖÐÓÐʱ»áÓö¼ûÂÒÂëµÄÇé¿ö£¬ÕâÀïÌṩÁ˼¸ÖÖת»»·½·¨
£¨Ò»£©JavaÖеıàÂëת»»
£¨¶þ£©¿ÉÒÔÔÚweb.xmlÎļþÖÐÅäÖõÄ×Ô¼ºÐ´µÄ¹ýÂËÆ÷
    µÚÒ»ÖÖ·½·¨×î¼òµ¥Ò²×î·½±ã£¬µ«ÊÇÖ»ÄÜÓÃÔÚÉÙÁ¿µÄµØ·½»òÊÇż¶ûÒ»Á½´ÎתÂ룬Èç¹û´óÃæ»ýʹÓþͲ»·½±ãÁË£¬Ò²´ó´óÔö¼ÓÁ˱àÂëÁ¿£¬Èç¹ûÄãµÄÏîÄ¿ÀïûÓÐÓÃSpringµÄ¿ò¼Ü¿ª ......

Java EEºÍDominoϵͳ¼ä¿çÓòSSOµÄʵÏÖ

1. SSOÐèÇó
µ¥µãµÇ¼£¨Single Sign On, SSO£©ÊÇÆóÒµÓ¦Óü¯³ÉÖÐ×î³£¼ûµÄÐèÇó¡£Ò칹ϵͳ¼äÍùÍù¶¼Óи÷×ÔµÄÓû§¹ÜÀíºÍÉí·ÝÑéÖ¤»úÖÆ£¬Îª
±ÜÃâÓû§ÔÚ½øÐÐϵͳÇл»Ê±Æµ·±ÊäÈëÓû§ÃûºÍÃÜÂ룬Òò´Ë±ØÐëҪʵÏÖµ¥µãµÇ¼¡£
2. SSOÔ­Àí
˵µ½SSOµÄÔ­Àí£¬ÏȵÃ˵һ°ãWebÓ¦ÓõÄÉí·ÝÑéÖ¤Ô­Àí¡£WebÉí·ÝÑéÖ¤Ö®ËùÒÔÄܳÉΪÎÊÌâÖ÷ÒªÔÚÓÚHTTPЭÒé ......

java »ñµÃ ip µØÖ·

Ò»°ãÇé¿ö»ñµÃ±¾µØËùÓеÄipµØÖ·£º
try   {
InetAddress   address   =   InetAddress.getLocalHost();
System.out.println(address.getHostAddress());
String   name   =   address.getHostName();
System.out.println(name);
InetAddress[]   addresses   = &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ