Skip to content

Instantly share code, notes, and snippets.

View anditto's full-sized avatar
🤖

Anditto Heristyo anditto

🤖
View GitHub Profile
import java.io.*;
import java.net.*;
public class MyEchoClient {
public static void main(String args[]) {
try {
Socket sock = new Socket("127.0.0.1" , 10007);
InputStream in = sock.getInputStream();
OutputStream out = sock.getOutputStream();
String str = "hello\n";