public class ServerExample {
List<Client> connections = new Vector<Client>();
class Client {
void receive() {
}
void send(String data) {
connections.remove(Client.this);
}
}
}
public static void main(String[] args) {
}
코드 큰 부분들만 작성했는데,
여기서 Client.this 이 코드를 모르겠어
this가 무엇을 의미하는거야?
자기자신
? 저런 문법이 있었나 그냥 this는 봤어도 저런건 처음보네
생성된 객체 주소
답변해줘서들 고마워