All pastes #247611 Raw Edit

Stuff

public text v1 · immutable
#247611 ·published 2006-11-13 18:23 UTC
rendered paste body

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();   } }