Java は初めてです。私の推測では、そうあるべきnew Socket ("nothing",8)
ですか?
public static void test(String s[]) {
try {
echoSocket = new Socket("nothing", 7);
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader( new InputStreamReader(echoSocket.getInputStream()));
} catch (UnknownHostException e) {
System.err.println("Don't know about host: .");
return;
}
process(out, in, echoSocket);
out.close();
in.close();
echoSocket.close();
}