forked from AdvancedProgramming1404/WS-09-Network
implement all TODOs
This commit is contained in:
@@ -39,7 +39,7 @@ public class ClientHandler implements Runnable {
|
||||
}
|
||||
|
||||
private void requestUsername() throws IOException {
|
||||
out.println("Enter your username:");
|
||||
out.println("Enter your username: ");
|
||||
username = in.readLine();
|
||||
if (username == null || username.trim().isEmpty()) {
|
||||
username = "Anonymous";
|
||||
|
||||
Reference in New Issue
Block a user