diff --git a/examples/src/TcpExamples/TcpExample1Telnet.java b/examples/src/TcpExamples/TcpExample1Telnet.java index df9d5745c9f45f3bf975ce79df71db8c0d8fa9c3..e969b7958c6c8ec3c52a34acc17a694cb714a42b 100644 --- a/examples/src/TcpExamples/TcpExample1Telnet.java +++ b/examples/src/TcpExamples/TcpExample1Telnet.java @@ -59,7 +59,7 @@ public class TcpExample1Telnet // Use Java io classes to write text (as opposed to // unknown bytes of some sort) to the client OutputStream os = clientConnection.getOutputStream(); - PrintStream ps = new PrintStream(os); + PrintStream ps = new PrintStream(os); ps.println("This client response was written by server " + TcpExample1Telnet.class.getName()); // to remote client System.out.println("This server response was written by server " + TcpExample1Telnet.class.getName()); // to server console diff --git a/examples/src/TcpExamples/TcpExample3Server.java b/examples/src/TcpExamples/TcpExample3Server.java index 0e7a3f29f14da43c766d9a9f083a01a21c0358c3..7d5439e1bb0e96b125bb31a3a3a4c4ead6c0ae78 100644 --- a/examples/src/TcpExamples/TcpExample3Server.java +++ b/examples/src/TcpExamples/TcpExample3Server.java @@ -81,8 +81,7 @@ public class TcpExample3Server { if ( localAddress.getHostName().equals( localAddress.getHostAddress()) || remoteAddress.getHostName().equals(remoteAddress.getHostAddress())) - System.out.println(" note HostName matches address if host has no DNS name"); - + System.out.println(" note HostName matches address if host has no DNS name"); // Notice the use of flush() and try w/ resources. Without // the try w/ resources the Socket object may stay open for // a while after the client has stopped needing this