This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Example { | |
| public static void main(String[] argss) throws Exception { | |
| int intStart = 6; | |
| try (ServerSocket serverSocket = new ServerSocket()) { | |
| serverSocket.bind(new InetSocketAddress(0)); | |
| Thread serverThread = new Thread(() -> { | |
| try { | |
| while (serverSocket.isBound()) { |
OlderNewer