JavaÿÌìѧϰһµãµã 09.10.14
²»»ýõͲ½ÎÞÒÔÖÁǧÀï,²»»ýСÁ÷ÎÞÒԳɽºÓ.
1¡¢ javaÎļþÖбØÐëÒªÓÐÀ࣬¹¦ÄÜÐԵķ½·¨Òª·Åµ½mainº¯ÊýÖС£Ìرð×¢Ò⣬ÔÚ±àд´úÂëµÄ¹ý³ÌÖУ¬MainºÍmainÊDz»Í¬µÄ£¬ÑϸñÇø·Ö´óСд¡£»¹ÈÝÒ׳ö´íµÄÊÇString[] args £¬ÈÝÒ×д³Éstring[] args¡£
2¡¢ Ö´ÐоßÌ幦ÄܵÄÓï¾äÐèÒª·ÖºÅ½áβ¡£Óà + Ðø½Ó £¬×Ö·û´®ÏàÁ¬¡£// (×¢ÊÍÒ»ÐÐ) ¡¢ /* */£¨¿É×¢ÊÍÒ»¶Î£©¡£
3¡¢ JavaûÓÐSizeof¡¢goto¡¢const×ö¹Ø¼ü×Ö£¬goto constÒ²²»ÄÜ×÷Ϊ¹Ø¼ü×Ö¡£
4¡¢ ³£Á¿£ºµ±ÎÒÃÇÊäÈë5.1ʱ£¬½«»áÔÚÄÚ´æÖÐÕ¼ÓÃ8¸ö×Ö½Ú£¬ÕâÊÇÒ»¸ödoubleÀ࣬ÊÇĬÈϵġ£
Èç¹ûÎÒÃÇÐèÒªµ¥¾«¶È5.1£¬ÄÇô¾ÍҪдΪ5.1F¡£
²¼¶ûÖµ£¬Ö»ÓÐtrueºÍflase£¬Ã»ÓÐ0£¨false£©£¬·ÇÁ㣨true£©Ö®Ëµ¡£
5¡¢PathÖ¸¶¨ÃüÁîËùÔÚĿ¼£¬classpathÊÇÖ¸¶¨javaÀàËùÔÚĿ¼¡£
Ïêϸ˵һÏ£¬path£¬Ò²¾ÍÊǵ±ÃüÁîÐÐÖÐÊäÈëjavacÃüÁîʱ£¬µçÄÔ»á×Ô¶¯µ½pathĿ¼ËÑË÷¸ÃÃüÁî¡£Classpath Ö¸µÄÊÇjavaÀàÎļþĿ¼£¬µ±ÐÂдµÄjavaÎļþ£¬Í¨¹ý±àÒ뵫ÊÇ¿¨ÔÚÔËÐÐʱ£¬Ó¦¸Ã¿¼ÂÇÒ»ÏÂÊDz»ÊÇclasspathÉèÖõÄÎÊÌ⣬һ°ã .£¨µã£©¾ÍÊÇÖ¸µÄµ±Ç°ÎļþĿ¼Ï£¨¾ÍÊǵ±Ç°±àдµÄ *.javaÎļþËùÔÚĿ¼£© ¡£
Ïà¹ØÎĵµ£º
¶ÔÓÚÒ»¸öʵÏÖÁËComparable½Ó¿ÚµÄ¶ÔÏ󣬸ýӿÚÖ»ÄÜʵÏÖÒ»´Î¡£Èç¹ûÔÚÒ»¸ö¼¯ºÏÀïÃæÐèҪʹÓÃidÅÅÐò£¬¶øÔÚÁíÍâÒ»¸ö¼¯ºÏÀïÐèÒª°´Ãû×ÖÅÅÐòÕâʱ¾ÍÐèÒªÔÚÕâ¸ö¼¯ºÏÀïÃæÖ¸¶¨±È½ÏÆ÷¡£
Comparable½Ó¿ÚÉùÃ÷ÁËcompareTo(Object o)·½·¨
Comparator ½Ó¿ÚÉùÃ÷ÁËcompare(Object o1,Object o2)·½·¨
eg:
µÚÒ»¸öÊ÷¼¯Êǰ´ÕÕ¶ÔÏóĬÈϵÄidÅÅÐò£¬µ ......
Ò»¡¢JavaÔËÐÐʱµÄÁ½ÖÖºËÐÄ»úÖÆ
£¨1£©JavaÐéÄâ»ú£¨Java Virtual Machine£©
ÓÃÀ´´¦ÀíJavaÔ´Îļþ±àÒëºóµÄ×Ö½ÚÂ룬ÆÁ±Îµ×²ãÔËÐÐÆ½Ì¨µÄ²îÒ죬ʵÏÖ“Ò»´Î±àÒë£¬Ëæ´¦Ö´ÐД£¬¶øÇÒ²»Í¬µÄÔËÐÐÆ ......
public class DateTest {
public static void main(String[] args) {
Date date = new Date(); // н¨Ò»¸öÈÕÆÚ
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); // ¸ñʽ»¯ÈÕÆÚ
String beforeDate = sdf.format(getDateBefore(date, 10));
System ......
ʹÓà Java communications API ʵÏÖ²¢Ðж˿ڴòÓ¡
ÕâÊÇÒ»¸öÔÚ¿Í»§Ö§³ÖÖÐÓöµ½µÄÐÂÎÊÌ⣬ÎÒÔÚÏà¹ØµÄÍøÕ¾([url]www.rxtx.org[/url] and [url]www.sun.com.cn[/url])ÉÏÕÒµ½ÁËһЩÓÐÓõÄÐÅÏ¢£¬×îºóÖÕÓÚÔÚWindows XP ºÍ LinuxIA32 ƽ̨ÏÂʵÏÖ²¢Ðж˿ڴòÓ¡ÕâÒ»¹¦ÄÜ¡£
Ê×ÏÈ£¬ÎÒÃÇÒª´ÓSUNµÄÍøÕ¾ÏÂÔØJava communicat ......
¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ4ÕÂ
www.wesiedu.com 2009-5-5 ÔÚÏßÄ£Ä⿼³¡
µÚ4Õ Êý×éºÍ×Ö·û´®
(Ò»)¿Î³ÌÄÚÈÝ
4.1 Êý×é
4.1.1 һάÊý×é
4.1.2 ¶àάÊý×é
4.2 ×Ö·û´®
4.2.1 ×Ö·û´®³£Á¿
4.2.2 ×Ö·û´®ÉùÃ÷ºÍ´´½¨
4.2.3 ×Ö·û´®»ù±¾²Ù×÷
4.2.4 StringTokenizerÀà
4.2.5×Ö· ......