javaÖеķâ×°Àà
·â×°ÀàÒ²½Ð°ü×°À࣬ÊÇÕë¶Ô°ËÖÖ»ù±¾¶¨ÒåÏàÓ¦µÄÒýÓÃÀàÐÍ¡£
»ù±¾Êý¾ÝÀàÐÍ ·â×°Àà
boolean Boolean
byte Byte
short Short
int Integer
long Long
char Character
float Float
double Double
·â×°ÀàÓ÷¨Àý×Ó1£º
int i = 500;
Integer t = new Integer(i); //°Ñiת»»³ÉIntegerÀàÐ͵ĶÔÏót
int j = t.intValue(); // °ÑIntegetÀàÐ͵ĶÔÏótת»»³ÉÕûÐÎ j£¬j = 500
String s = t.toString(); // s = “500”£¬IntegerÄܵ÷ÓÃtoString·½·¨£¬ÒòΪIntegerµÄ¸¸ÀàÊÇObjectÀà¡£t±ä³ÉÁËtoStringÀàÐ͵ĶÔÏós.
String s1 = Integer.toString(314); // s1= “314“,Õâ¸öÊÇÖØÔØµÄ·½·¨¡£Õâ¸ötoString±»ÖØÐ´ÁË£¬¶øÇÒÊǾ²Ì¬µÄ£¬Ò
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔǰ£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
Ò»£º×¼±¸ www.savarese.org download
1. rocksaw-1.0.0-src.tar.gz
2. vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
1. build vserv-tcpip-0.9.2-src
ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃæ½¨Ò»¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......
declarations n. ÉùÃ÷
extends v. ¼Ì³Ð
¼Ì³ÐÖÐ×¢ÒâµÄÎÊÌ⣺
1 ÖØÐ´(Ò²½Ð¸²¸Ç£¬Ò²½ÐÖØ¹¹)£ºÖØÐ´·½·¨±ØÐëºÍ±»ÖØÐ´·½·¨¾ßÓÐÏàͬµÄ·½·¨Ãû³Æ¡¢²ÎÊýÁбíºÍ·µ»ØÖµÀàÐÍ£»
ÖØÐ´·½·¨²»ÄÜʹÓñȱ»ÖØÐ´·½·¨¸üÑϸñµÄ·ÃÎÊȨÏÞ¡£
ÖØÐ´ÊÇÀàÓëÀà ......
==²Ù×÷·ûÓëequals·½·¨µÄÇø±ð£º
==ÊÇÒýÓÃÀàÐͱȽÏÒýÓÃ(Ò²¾ÍÊDZȽÏÄÚÈݺ͵ØÖ·)£»»ù±¾ÀàÐͱȽÏÖµ£»
equals()·½·¨Ö»ÄܱȽÏÒýÓÃÀàÐÍ£¬"=="¿ÉÒԱȽÏÒýÓÃÀàÐͼ°»ù±¾ÀàÐÍ£»
ÌØÀý£ºµ±ÓÃequals()·½·¨½øÐбȽÏʱ£¬¶ÔÀàFile¡¢String¡¢Date¼°·â×°ÀࣨWrapper°ü×° ......
toString() ·½·¨£º
toString()·½·¨ÔÚObjectÀàÖж¨Ò壬Æä·µ»ØÖµÊÇStringÀàÐÍ£¬ÃèÊöµ±Ç°¶ÔÏóµÄÓйØÐÅÏ¢
ÔÚ½øÐÐStringÓëÆäËüÀàÐÍÊý¾ÝµÄÁ¬½Ó²Ù×÷ʱ£¬×Ô¶¯µ÷ÓÃtoString()·½·¨
¿ÉÒÔ¸ù¾ÝÐèÒªÔÚÓû§×Ô¶¨ÒåÀàÐÍÖÐÖØÐ´toString()·½·¨
»ù±¾ÀàÐÍÊý¾Ý× ......