Rémi Forax wrote:
True, but this was just a minor comment on the RHS where it would be clearer if ss were final.:try (ServerSocket listener = ss; Socket s = listener.accept();BufferedReader reader = new BufferedReader(new InputStreamReader(s.getInputStream())){ ... }While you are there, I assume ss should be final.Local variables declared in a try-with resources are implicitly final.
-Alan
