try{
DatagramSocket receiveSocket = new DatagramSocket(8080);
byte buf[] = new byte[1000];
...
}catch
{
...
}
为什么报错?Syntax error on token(s), misplaced construct(s) UDPServerTest.java
DatagramSocket receiveSocket = new DatagramSocket(8080);
byte buf[] = new byte[1000];
...
}catch
{
...
}
为什么报错?Syntax error on token(s), misplaced construct(s) UDPServerTest.java
里面要写个异常变量。