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±»ÖØÐ´ÁË£¬¶øÇÒÊǾ²Ì¬µÄ£¬Ò
Ïà¹ØÎĵµ£º
Êý×éÊôÒýÓÃÀàÐÍ£¬Êý×éÐÍÊý¾ÝÊǶÔÏó(object)£¬Êý×éÖеÄÿ¸öÔªËØÏ൱ÓڸöÔÏóµÄ³ÉÔ±±äÁ¿
Êý×éÖеÄÔªËØ¿ÉÒÔÊÇÈκÎÊý¾ÝÀàÐÍ£¬°üÀ¨»ù±¾ÀàÐͺÍÒýÓÃÀàÐÍ
¼ÇסÊý×éÊ×ÏÈ·ÖÅä¿Õ¼äÔÙ¸³Öµ£¡
¶¯Ì¬³õʼ»¯£º¾ÍÊÇÏÈ·ÖÅä¿Õ¼äÔÙ¸³³õÖµ£»
¾²Ì¬³õʼ»¯£º¶¨ÒåÊý×éͬʱ¾ÍΪÊý×éÔªËØ·ÖÅä¿Õ¼ä²¢¸³Öµ¡£
1һάÊý×éµÄÉùÃ÷
һάÊý×éµÄÉùÃ÷£ºtype va ......
declarations n. ÉùÃ÷
extends v. ¼Ì³Ð
¼Ì³ÐÖÐ×¢ÒâµÄÎÊÌ⣺
1 ÖØÐ´(Ò²½Ð¸²¸Ç£¬Ò²½ÐÖØ¹¹)£ºÖØÐ´·½·¨±ØÐëºÍ±»ÖØÐ´·½·¨¾ßÓÐÏàͬµÄ·½·¨Ãû³Æ¡¢²ÎÊýÁбíºÍ·µ»ØÖµÀàÐÍ£»
ÖØÐ´·½·¨²»ÄÜʹÓñȱ»ÖØÐ´·½·¨¸üÑϸñµÄ·ÃÎÊȨÏÞ¡£
ÖØÐ´ÊÇÀàÓëÀà ......
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 ......
http://java.csdn.net/index.php/2009/09/01/java%E5%BC%80%E5%8F%91%E8%80%85%E6%9C%80%E5%B8%B8%E5%8E%BB%E7%9A%8420%E4%B8%AA%E8%8B%B1%E6%96%87%E7%BD%91%E7%AB%99/
JAVA¿ª·¢Õß×ȥµÄ20¸öÓ¢ÎÄÍøÕ¾
1.[http://www.javaalmanac.com
] – Java¿ª·¢ÕßÄê¼øÒ»ÊéµÄÔÚÏß°æ±¾. ÒªÏë¿ìËٲ鵽ijÖÖJava¼¼ÇɵÄÓ÷¨¼°Ê¾Àý´ú ......
×÷Îı¾±à¼Æ÷µÄʱºò£¬³·Ïú(undo)¡¢»Ö¸´(redo)ÊDZز»¿ÉÉÙµÄÁ½¸ö¹¦ÄÜ¡£ÊµÏÖÕâ¸ö¹¦ÄÜ£¬ÒªÓõ½javax.swing.undo°üÖеÄUndoManagerÀà¡£
UndoManagerÀàÓÐÈçϳ£Ó÷½·¨£º
boolean canUndo() ——ÅжÏÄÜ·ñ½øÐг·Ïû²Ù×÷£¬¿ÉÒÔÔò·µ»Øtrue¡£
boolean canRedo() ——ÅжÏÄÜ·ñ½øÐлָ´²Ù×÷£¬¿ÉÒÔÔò·µ ......