Salve,ho questa porzione di codice:

import java.io.*;
import java.net.*;
import java.util.*;

public class Command{
//Come faccio a rendere accessibile questo oggetto ad entrambi i miei metodi?
Socket sock=new Socket("127.0.0.1",1234);


public void command(String coma,String data)throws IOException{

.....//dato che qui mi serve

}

public void make(String keyword) throws IOException {
......//e che serve anche qui

}
}