Stuff
public text v1 · immutable
import java.net.*;
import java.io.*;
public class SimpleClient {
public static void main(String args[]) throws IOException {
Socket s1;
InputStream s1In;
DataInputStream dis;
s1 = new Socket("127.0.0.1", 5432);
s1In = s1.getInputStream();
dis = new DataInputStream(s1In);
String st = new String(dis.readUTF( ));
System.out.println(st);
dis.close(); s1In.close(); s1.close(); } }