diff --git a/examples/src/TcpExamples/TcpExample3Client.java b/examples/src/TcpExamples/TcpExample3Client.java index 64113b2e71279ff361251f2240ae9898793fffde..30ea9e36bb658e398060ebc7b30f02096b071e80 100644 --- a/examples/src/TcpExamples/TcpExample3Client.java +++ b/examples/src/TcpExamples/TcpExample3Client.java @@ -26,8 +26,8 @@ public class TcpExample3Client { * Program invocation, execution starts here * @param args command-line arguments */ - public static void main(String[] args) throws InterruptedException { - + public static void main(String[] args) + { // Local variables/fields Socket socket = null; InputStream is; @@ -69,7 +69,7 @@ public class TcpExample3Client { } // end while(true) // infinite loops are dangerous, be sure to kill this process! } - catch (IOException e) + catch (IOException | InterruptedException e ) { System.err.println("Problem with " + TcpExample3Client.class.getName() + " networking:"); // describe what is happening System.err.println("Error: " + e);