public class UDP implements Runnable {
private String host;
private int port;
private int delay;
private int timeout;
@Override
public void handlePacket(String host, int port, int delay, int timeout) {
UDP.host = host;
UDP.port = port;
UDP.delay = delay;
UDP.timeout = timeout;
Executors.newSingleThreadExecutor().execute(new UDP());
}
我得到的错误是非静态字段不能引用到静态上下文我不知道我应该做什么,我知道一点java,但我完全迷路了