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±»ÖØÐ´ÁË£¬¶øÇÒÊǾ²Ì¬µÄ£¬Ò
Ïà¹ØÎĵµ£º
2009Äê7ÔÂÎҲμÓÁËÒ»¸öJAVAרҵ»ú¹¹µÄÅàѵ£¬Ö®ËùÒԲμÓÕâ¸öÅàѵ£¬ÎÒÊÇΪÁ˽øÒ»²½ÌáÉý×Ô¼ºµÄ¼¼Êõ£¬ÁíÒ»·½ÃæÎÒÒ²±È½Ïϲ»¶JAVA£¬Ï£ÍûËüÄܳÆÎªÎҵļ¼ÊõÖ÷Á¦¡£×ªÑÛ£¬Åàѵ¾Í¿ì½áÊøÁË£¬ÐÄÖиÐÎòÁ¼¶à£¬Ï£ÍûÓë¾ý¹²Ãã¡£
ÎÒËù²Î¼ÓµÄÅàѵ»ú¹¹Ö»ÓÐÒ»¸öÀÏʦ£¬²»ÏñºÜ¶àµØ·½ÓкöàµÄÀÏʦ£¬Ã¿Ììÿһ½Ú¿Î¶¼ÊÇËûÀ´¸ ......
private String smtpHost;
private String smtpUserName;
private String smtpPassword;
public void sendEmail(String fromAddress, List<String> toAddresses, List<String> ccAddresses,
String subject, String message) {
Properties props = new Properties();
props.put("mail.smtp.host", smt ......
¶àÏß³Ì
Ị̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì¡£
Ïß³ÌÓë½ø³ÌµÄÇø±ð£ºÃ¿¸ö½ø³Ì¶¼ÐèÒª²Ù×÷ϵͳΪÆä·ÖÅä¶ÀÁ¢µÄÄÚ´æµØÖ·¿Õ¼ä£¬¶øÍ¬Ò»½ø³ÌÖеÄËùÓÐÏß³ÌÔÚͬһ¿éµØÖ·¿Õ¼äÖй¤×÷£¬ÕâЩÏ߳̿ÉÒÔ¹²Ïíͬһ¿éÄÚ´æºÍϵͳ×ÊÔ´¡£
ÈçºÎ´´½¨Ò»¸öỊ̈߳¿
´´½¨Ïß³ÌÓÐÁ½ÖÖ·½Ê½£¬ÈçÏ£º
1¡¢ À©Õ¹java.lang.ThreadÀà
2¡¢ ʵÏÖRunnable½Ó¿Ú
......
java¾µäÊé¼®»ã×Ü£¨²¿·Ö£©
Ò»¡¢ÈëÃÅ
¡¶Java 2´ÓÈëÃŵ½¾«Í¨¡·£ ÍÆ¼ö
¡¶Thinking in Java¡·£ Ç¿ÁÒÍÆ¼ö*
O’reillyµÄJava±à³Ì»ù´¡ÏµÁÐ £ ²Î¿¼*
¶þ¡¢½ø½×
¡¶Java Cook Book¡·£ ·Ç³£ÍƼö* £¨°üº¬ÁËJava±à³ÌµÄTips£¬Êʺϵ± ......
Ŀ¼
¡¡¡¡Ç°ÑÔ
¡¡¡¡Ò». Java ÎĵµºÍ javadoc
¡¡¡¡¶þ. Îĵµ×¢Ê͵ĸñʽ
¡¡¡¡¡¡¡¡1. Îĵµ×¢Ê͵ĸñʽ»¯
¡¡¡¡¡¡¡¡2. Îĵµ×¢Ê͵ÄÈý²¿·Ö
¡¡¡¡Èý. ʹÓà javadoc ±ê¼Ç
¡¡¡¡¡¡¡¡1. @see µÄʹÓÃ
¡¡¡¡¡¡¡¡2. ʹÓà @author¡¢@version ˵Ã÷Àà
¡¡¡¡¡¡¡¡3. ʹÓà @param¡¢@return ºÍ @exception ˵Ã÷·½·¨
¡¡¡ ......