DatagramSocket datareceive;
DatagramSocket datasend;
try {
datareceive = new DatagramSocket(10009);
datasend = new DatagramSocket();
} catch (SocketException e) {
e.printStackTrace();
}
Send send=new Send(datasend);// The local variable datasend may not have been initialized
Receive rece=new Receive(datareceive);//The local variable datasend may not have been initialized 可是上面在try中已经创建了啊
DatagramSocket datareceive;
DatagramSocket datasend;
try {
datareceive = new DatagramSocket(10009);
datasend = new DatagramSocket();
} catch (SocketException e) {
e.printStackTrace();
}
Send send=new Send(datasend);// The local variable datasend may not have been initialized
Receive rece=new Receive(datareceive);//The local variable datasend may not have been initialized 可是上面在try中已经创建了啊