????Java??????
?????????????? ???????[ 2016/9/18 13:18:51 ] ??????????????????? Java
????(2). ???????????
import java.io.*;
import java.net.*;
import java.applet.Applet;
public class TalkServer{
public static void main(String args[]) {
try{
ServerSocket server=null;
try{
server=new ServerSocket(4700);
//???????ServerSocket????4700???????????
}catch(Exception e) {
System.out.println("can not listen to:"+e);
//???????????????
}
Socket socket=null;
try{
socket=server.accept();
//???accept()???????????????п??
//??????????????Socket?????????????
}catch(Exception e) {
System.out.println("Error."+e);
//???????????????
}
String line;
BufferedReader is=new BufferedReader(new InputStreamReader(socket.getInputStream()));
//??Socket?????????????????????????BufferedReader????
PrintWriter os=newPrintWriter(socket.getOutputStream());
//??Socket???????????????????PrintWriter????
BufferedReader sin=new BufferedReader(new InputStreamReader(System.in));
//????????????豸????BufferedReader????
System.out.println("Client:"+is.readLine());
//??????????????????????????
line=sin.readLine();
//?????????????????
while(!line.equals("bye")){
//??????????? "bye"?????????
os.println(line);
//????????????????
os.flush();
//???????????Client??????????????
System.out.println("Server:"+line);
//????????????????????????
System.out.println("Client:"+is.readLine());
//??Client???????????????????????????
line=sin.readLine();
//????????????????????
} ??//???????
os.close(); //???Socket?????
is.close(); //???Socket??????
socket.close(); //???Socket
server.close(); //???ServerSocket
}catch(Exception e){
System.out.println("Error:"+e);
//???????????????
}
}
}
????5??????????client/server????
????????Client/Server??????????Server?????????????????????? ?У????????????????????????????????????????????????????????????????????????????????????????????????????????????? ????????и??????????????????????????????????????????????????п?????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????