Fix some vladcode

This commit is contained in:
pixtaded 2025-01-11 16:28:43 +03:00
parent 162c4bdf53
commit 6dace63cb0

View File

@ -68,7 +68,7 @@ public class CrabClient implements Crab {
System.out.print("Enter your nickname (leave empty for no nickname): "); System.out.print("Enter your nickname (leave empty for no nickname): ");
nickname = scanner.nextLine(); nickname = scanner.nextLine();
if (nickname != "") if (!nickname.isEmpty())
nickname = "<" + nickname + "> "; nickname = "<" + nickname + "> ";
} }