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 ......
´ÓCore Javaµ½Thinking in Java
JavaÊÇÒ»ÖÖ¿çƽ̨¡¢ÃæÏò¶ÔÏ󡢸øÓèÍøÂç¼°Ö§³Ö¶àýÌåµÄ±à³ÌÓïÑÔ£¬²¢¿É²åÈëµ½HTMLÎĵµÖС£
1.ÔÚhtmlÎĵµÖÐÌí¼ÓÁ´½Ó£¬¼´ÔÚ<body>±êÇ©¼ä²åÈëÒÔÏ´úÂ룺
<applet code=ÀàÃû.class width=¿í¶È height=¸ß¶È></applet>
2.·â×°ÊÇÒ»ÖÖ½«´úÂë¼°Æä´¦ÀíµÄÊý¾Ý°ó¶¨ÔÚÒ»Æð± ......
×÷Ϊ¶ÔÏóµÄ´´½¨Ä£Ê½,µ¥Àýģʽȷ±£Ä³¸öÀàÖ»ÓÐÒ»¸öʵÀý£¬¶øÇÒ×ÔÐÐʵÀý»¯²¢ÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£Õâ¸öÀà³ÆΪµ¥ÀýÀà¡£Óɶ¨Òå¿ÉÒÔ×ܽá³öµ¥ÀýģʽµÄÒªµãÓÐÈý¸ö£ºÒ»Êǵ¥ÀýÀàÖ»ÄÜÓÐÒ»¸öʵÀý£»¶þÊÇËü±ØÐë×ÔÐд´½¨Õâ¸öʵÀý£»ÈýÊÇËü±ØÐë×ÔÐÐÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£
ÔÚ¼ÆËã»úϵͳÖУ¬Ï̳߳ء¢»º´æ¡¢ÈÕÖ ......
µÚÒ»´Î³¢ÊÔдѧϰ±Ê¼Ç£¬ÒòΪ¾õµÃÒÔǰѧ¹ýµÄ¶«Î÷³¤Ê±¼ä²»ÓþͶ¼ÍüÁË¡£Ò²²»ÖªµÀÕâÑù×öÖµ²»ÖµµÃ£¬ÒòΪ±Ï¾¹Ð´Ñ§Ï°±Ê¼Ç»á»¨·ÑÒ»¶¨µÄʱ¼ä£¬¶ÔÓÚÒ»¸öÈí¼þ¹¤³ÌרҵµÄ´óÈýѧÉúÀ´Ëµ£¬¿Î³Ì·±ÖØÊÇÖÚËùÖÜÖªµÄ¡£¶øÇÒÎÒµÄÎıÊÓÖ²»ºÃ£¬Ê±³£Ð´×ÅдמͲ»ÖªµÀ¸ÃÕâôдÁË£¬ÊôÓÚÄÇÖÖÐÄÖª¶ÇÃ÷¾ÍÊÇ˵²»³öÀ´µÄÀàÐÍ¡£²»¹ý£ ......