public static void main(String args[]) {
		String hostName = "localhost";
		int port = 7625;
		
		try {
			Socket socket = new Socket(hostName, port); //Creates the socket with the hostname(IP) and port
			PrintWriter out = new PrintWriter(socket.getOutputStream(), true); //use the append method to write to the server socket
			BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); //Gets the socket's input stream and opens a PrintWriter on it
			BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); //Gets text from the in-IDE console
			
			String userInput;
            while ((userInput = stdIn.readLine()) != null) {
                out.println(userInput);
                System.out.println("echo: " + in.readLine());
            }
			
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}