public static void main(String[] args) {
		
		
		
		try {
			Socket s = new Socket("localhost", 7002);
			
			ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());
			ObjectInputStream ois = new ObjectInputStream(s.getInputStream());
			
			oos.writeObject(new Integer(5));
			
			
			oos.writeObject(new Integer(8));
			
			Integer result = (Integer)ois.readObject();
			
			
		
			
			System.out.println("result: " + result);
			s.close();
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		

	}