Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¡¾JavaÍøÂç±à³ÌÒ»¡¿Ò»¸ö¼òµ¥µÄc/s³ÌÐò

ʵÑéÒªÇó£º
1.±àд»ùÓÚTCPЭÒéµÄͨÐųÌÐò£¬°üÀ¨ServerÓëClientÁ½¸ö²¿·Ö¡£ÊµÏÖ»ØÉù³ÌÐò£º¼´¿Í»§¶Ë·¢ËÍÏûÏ¢£¬·þÎñÆ÷¶Ë½«ÊÕµ½µÄÏûÏ¢Ô­Ñù»áË͸ø¿Í»§¶Ë¡£
2.ÔÚµ¥»úÉÏÔËÐÐËüÃÇ£¬ÑéÖ¤ÆäͨÐŽá¹û£»
3.ÔÚ¶à»úÉÏÔËÐÐËüÃÇ£¬ÑéÖ¤ÆäͨÐŽá¹û£»£¨ChatServerÖ»ÐèÔËÐÐÔÚһ̨Ö÷»úÉÏ£¬ChatClient¿ÉÔÚÆäËüÖ÷»úÉÏÔËÐУ¨ÒªÖªµÀChatServerËùÔÚÖ÷»úµÄIPµØÖ·£©¡£
4£®Ìáʾ£º·þÎñÆ÷¶Ë»ØËÍÏûϢʱ£¬¿ÉÒÔ½øÐмӹ¤£¬ÀýÈç¸øÿ¸öÊÕµ½µÄÏûÏ¢¼ÓÉÏ“·þÎñÆ÷»ØËÍ”+ԭʼÏûÏ¢+·þÎñÆ÷¶ËÊÕµ½ÏûÏ¢µÄʱ¼ä£»
5£®¿Í»§¶Ë¿ÉÒÔ´Ó4×Ö½ÚÊý¾Ý¿ªÊ¼·¢ËÍ£¬Öð½¥Ôö´óÊý¾ÝÁ¿£¬¹Û²ì´ÓÉÙÁ¿Êý¾ÝµÄ·¢Ë͵½´óÁ¿Êý¾ÝµÄ·¢ËÍ£¬Ê±¼äÐÔÄܵı仯£¬¼Ç¼ÿ´Î·¢ËÍÊý¾ÝËùÐèʱ¼ä£¬ÀûÓÃexcelÖÆ×÷ÇúÏßͼ£¨¸Ã²¿·ÖʵÑé¿ÉÑ¡£©
Ô´Â룺
·þÎñÆ÷¶Ë£º
package tcpipchapter3;
import java.io.*;
import java.net.*;
import java.text.SimpleDateFormat;
import java.util.Date;
public class server {
 /**
  * @param args
  */
 //ÉèÖö˿ںÅ\
 public static int portNo=3333;
 public static void main(String[] args) throws IOException {
  // TODO Auto-generated method stub
  //³õʼ»¯serverSocketÀà
  ServerSocket s=new ServerSocket(portNo);
  System.out.println("The Server is starting...");
  //½¨Á¢socketÁ¬½Ó(×èÈû£¬Ö±µ½Óпͻ§¶ËÁ¬½Ó)
  Socket socket=s.accept();
  //½ÓÊÕÊý¾Ý
  try{
   //¹¹ÔìÊäÈëÁ÷»º´æ
   BufferedReader bufReader=new BufferedReader(new InputStreamReader(socket.getInputStream()));
   PrintWriter out=new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);
   String time=new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new Date());
   while(true){
       //°´ÐжÁÈ¡ÊäÈëÄÚÈÝ
    String strLine=bufReader.readLine();
    //Èç¹ûÊÕµ½byebyeÔòÍ˳öÑ­»·
    if(strLine.equals("byebye")){
     break;
    }
   &n


Ïà¹ØÎĵµ£º

Java ÃæÏò¶ÔÏóµÄÌصã

1£®1 ÃæÏò¶ÔÏóµÄ»ù±¾¸ÅÄî
¡¡¡¡ÃæÏò¶ÔÏóµÄ»ù±¾Ë¼Ïë
¡¡¡¡ÃæÏò¶ÔÏóÊÇÒ»ÖÖÐÂÐ˵ijÌÐòÉè¼Æ·½·¨,»òÕßÊÇÒ»ÖÖеijÌÐòÉè¼Æ¹æ·¶(paradigm),Æä»ù±¾Ë¼ÏëÊÇʹÓöÔÏó¡¢Àà¡¢¼Ì³Ð¡¢·â×°¡¢ÏûÏ¢µÈ»ù±¾¸ÅÄîÀ´½øÐÐ
³ÌÐòÉè¼Æ¡£´ÓÏÖʵÊÀ½çÖп͹۴æÔÚµÄÊÂÎ¼´¶ÔÏ󣩳ö·¢À´¹¹ÔìÈí¼þϵͳ£¬²¢ÇÒÔÚϵͳ¹¹ÔìÖо¡¿ÉÄÜÔËÓÃÈËÀàµÄ×ÔȻ˼ά·½Ê½¡£¿ª·¢ ......

javaÉè¼Æģʽһ¿ú1

  Design Patterns in Java
-----------------------------------------
Steven John Metsker 
William C.Wake
-----------------------------------------
¹¨²¨µÈÒë
£­£­£­£­£­£­£­£­Ò»¡¢¶þÕ¶ÁÊé¼Ç¼£­£­£­£­£­£­
ģʽÊǼ¯ÌåÖǻ۵Ľᾧ¡£Ëü¸ø³öÁËÏà¹ØÐÐÒµÖо­Ñé·á¸»µÄ´ÓÒµÕßËùÓ¦ÓõÄËùÓеĸÅÄîºÍ·½ ......

JAVA Á¬½Ó SQLServer 2000.

JAVA Á¬½Ó SQLServer 2000 ËùÐèÒªµÄÈý¸öJAR°ü¡£
http://download.csdn.net/source/2283940
----------------
Code:
------------------------
  Connection conn = null;
  Statement sta = null;
  try {
   Class.forName("com.microsoft.jdbc.sqlserver.SQLServer ......

eclipse ÖÐ ¿ª·¢ java + flex ʱ ±¨ÕÒ²»µ½ flex µÄsdk

ÔÚeclipseÖÐн¨ÁËÒ»¸öwebÏîÄ¿ È»ºóÔÚwebÏîÄ¿ÖÐÏëÌí¼Óflex ¿ª·¢Ç°Ì¨¡£ÔÚwebÏîÄ¿ÃûÉϵã»÷ÓÒ¼ü ----flex project Nature  -----  Add flex project Nature    ÔÚµ¯³öµÄ¶Ô»°¿òÖÐ ÉèÖÃÈçͼ£º
È»ºó µã»÷ next
Flex WAR file £º  Ñ¡Ôñ ÄãµÄblazeds µÄ·¾¶ È»ºóµã»÷ Finish
½á¹û ÏîÄ¿ÏÔʾº ......

C/C++µ¥Ôª²âÊÔÀíÂÛ¾«Òª£¨Æߣ©

2.2 ½â¾ö¿É²âÐÔÎÊÌâ
    ÉÏÒ»½Ú¾ßÌå·ÖÎöÁ˿ɲâÐÔÎÊÌ⣬½ÓÏÂÀ´£¬ÎÒÃÇÀ´¿´¿´ÈçºÎ½â¾öÕâЩÎÊÌâ¡£ÏÂͼÖУ¬²ÊÉ«µÄ²¿·ÖÊÇÐèÒª½â¾öµÄ¿É²âÐԵľßÌåµÄÎÊÌâ¡£
   
ÓëÆäËû´úÂë¸ôÀë
    ΪÁËÌá¸ßЧÂÊ£¬Ó¦¸ÃÒ»´ÎÐÔ½«Ò»Î»¹¤³Ìʦ¸ºÔðµÄ²âÊÔÈÎÎñ¸ôÀë³öÀ´¡£¸ôÀëʱ£¬Ó¦°ÑÔ´Îļþ·ÖΪÈýÀࣺ± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ