File tree 1 file changed +14
-14
lines changed
compiled_starters/java/src/main/java
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ public static void main(String[] args) {
7
7
// You can use print statements as follows for debugging, they'll be visible when running tests.
8
8
System .out .println ("Logs from your program will appear here!" );
9
9
10
- // Uncomment this block to pass the first stage
11
- //
12
- // try {
13
- // ServerSocket serverSocket = new ServerSocket(4221);
14
- //
15
- // // Since the tester restarts your program quite often, setting SO_REUSEADDR
16
- // // ensures that we don't run into 'Address already in use' errors
17
- // serverSocket.setReuseAddress(true);
18
- //
19
- // serverSocket.accept(); // Wait for connection from client.
20
- // System.out.println("accepted new connection");
21
- // } catch (IOException e) {
22
- // System.out.println("IOException: " + e.getMessage());
23
- // }
10
+ Uncomment this block to pass the first stage
11
+
12
+ try {
13
+ ServerSocket serverSocket = new ServerSocket (4221 );
14
+
15
+ // Since the tester restarts your program quite often, setting SO_REUSEADDR
16
+ // ensures that we don't run into 'Address already in use' errors
17
+ serverSocket .setReuseAddress (true );
18
+
19
+ serverSocket .accept (); // Wait for connection from client.
20
+ System .out .println ("accepted new connection" );
21
+ } catch (IOException e ) {
22
+ System .out .println ("IOException: " + e .getMessage ());
23
+ }
24
24
}
25
25
}
You can’t perform that action at this time.
0 commit comments