¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ4ÕÂ
¡¶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×Ö·û´®Óë×Ö½ÚÊý×é
4.2.6 ¶ÔÏóµÄ×Ö·û´®±íʾ
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾ÕÂÄ¿µÄÊǽéÉÜÊý×éºÍ×Ö·û´®¡£Êý×éµÄÉùÃ÷¡¢´´½¨£¬ÒÔ¼°Êý×éµÄʹÓÃ;×Ö·û´®³£Á¿¡¢×Ö·û´®¶ÔÏóµÄÉùÃ÷ºÍ´´½¨
£¬Óë×Ö·û´®Óйصij£Ó÷½·¨¡£ÒªÇóÄÜÕýÈ·ÉùÃ÷ºÍ´´½¨Êý×顢ʹÓÃÊý×é;ÄÜÕýÈ·ÉùÃ÷ºÍ´´½¨×Ö·û´®£¬
´¦Àí×Ö·û´®£¬ÕÆÎÕ×Ö·û´®Óë»ù±¾ÀàÐÍÊý¾ÝÖ®¼äµÄת»»·½·¨¡£
(Èý)¿¼ºË֪ʶµãÓ뿼ºËÒªÇó
1.һάºÍ¶þάÊý×éµÄÉùÃ÷ºÍ´´½¨£¬Ò»Î¬ºÍ¶þάÊý×éµÄ¼òµ¥Ó¦Óã¬ÒªÇó´ïµ½“×ÛºÏÓ¦ÓÔ
²ã´Î¡£·ÇƽºâµÄ¶àάÊý×éµÄ´´½¨ÒªÇó´ïµ½“¼òµ¥Ó¦ÓÔ²ã´Î¡£
2.×Ö·û´®µÄÉùÃ÷ºÍ´´½¨£¬ÒªÇó´ïµ½“×ÛºÏÓ¦ÓÔ²ã´Î¡£
3.×Ö·û´®µÄ³£Óô¦Àí·½·¨£¬×Ö·û´®Óë»ù±¾Êý¾ÝÀàÐÍÖ®¼äµÄת»»£¬ÒªÇó´ïµ½“×ÛºÏÓ¦ÓÔ
²ã´Î¡£
4.StringTokenizerÀàµÄÓ÷¨£¬ÒªÇó´ïµ½“¼òµ¥Ó¦ÓÔ²ã´Î¡£
5.×Ö·û´®Óë×Ö½ÚÊý×éÖ®¼äµÄת»»£¬ÒªÇó´ïµ½“¼òµ¥Ó¦ÓÔ²ã´Î¡£
6.¶ÔÏóµÄ×Ö·û´®±íʾ£¬ÒªÇó´ïµ½“¼òµ¥Ó¦ÓÔ²ã´Î¡£
±¾ÎÄÀ´×Ô: ¡ï“ÖлªÎ¬Ë¼ÍøУ¡ï http://www.wesiedu.com Ïêϸ³ö´¦²Î¿¼£ºhttp://www.wesiedu.com/zikao/Html/20090505095303.shtml
Ïà¹ØÎĵµ£º
Ò»¡¢½¨±í
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`ID` int(11) NOT NULL auto_increment,
`NAME` varchar(16) NOT NULL default '',
`REMARK` varchar(16) NOT NULL default '',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
&nb ......
import java.sql.*;
/*
* JAVAÁ¬½ÓACCESS£¬SQL Server,MySQL,OracleÊý¾Ý¿â
*
* */
public class JDBC {
public static void main(String[] args)throws Exception {
Connection conn=null;
//====Á¬½ÓACCESSÊý¾Ý¿â ......
Ò»¡¢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 ......
ÕâÀï¶ÔÓÚ¼¸¸ö»ù±¾µÄ¸ÅÄî URL TCP UDP Socket ¾Í²»¼Ó˵Ã÷ÁË£¬ÕâÀï½ö½öÊǼǼһЩѧϰÈÕÖ¾±¸Íü¡£
1£ºÈçºÎ¶¨ÒåÏà¶Ô×ÊÔ´
¼ÙÉèÓÐÈçÏÂÁ½¸ö×ÊÔ´ £º
http://www.gamelan.com/pages/Gamelan.game.html
http://www.gamelan.com/pa ......